|
-
May 19th, 2003, 05:47 PM
#1
Thread Starter
Junior Member
Exe runing multi times.
I have a question:
I want to be able to run the same .exe multiple times. How would I go about doing this?
Like, Load blah.exe yada yada yada.
Also: It has a limit to the number of times it's opened. How would I bypass this?
Look through your dreams through a mirror,
-
May 19th, 2003, 05:52 PM
#2
Fanatic Member
by default, the applications can be started in multiple instances on the same machine. if you cant do that with an application, that means the application protects itself from running in multiple instances. and that the guy who wrote it had something in mind when he or she added that code in there. there may be a trick that could fool some second instance of an app to think that there is no first instance of it, but i dont think that would apply to any app, and on top of that, most probably that app wouldnt run safely in multiple instances.
there are 2 reasons why i leave my work unfinished:
(1) i'm getting old.
-
May 19th, 2003, 05:54 PM
#3
Thread Starter
Junior Member
I know this, but all I ask is for a certain code or somethign to try, I'm just learning VB and trying to do somethings. I got most of the basics down, but I still need help.
Look through your dreams through a mirror,
-
May 19th, 2003, 05:59 PM
#4
Fanatic Member
i wouldnt do that in vb anyways. c++ would be more appropriate for such an attempt.
there are 2 reasons why i leave my work unfinished:
(1) i'm getting old.
-
May 19th, 2003, 06:00 PM
#5
Thread Starter
Junior Member
(I don't know C++)
So how are those Cubs!?
Look through your dreams through a mirror,
-
May 19th, 2003, 08:32 PM
#6
Addicted Member
LOL WOW...now i've seen everything. Someone asks the simplest vb question, another person tells him to learn C++ instead. IF HE WANTS TO LEARN VB, LET HIM LEARN IT!
I'm sorry about some of the useless people on this forum *I WONT NAME NAMES BECAUSE I COULD BE ONE OF THEM*. ANYWAYS!
NOTE: There's one thing though. This code won't work in run-time. It'll only work if the program is compiled. I'll have to figure out how to create another instance without compiling the program, but i'm kinda tired (SORRY).
VB Code:
'To run your exe over and over, use the following
Shell app.path & "\" & App.EXEName & ".exe", vbNormalFocus
-
May 19th, 2003, 08:46 PM
#7
Thread Starter
Junior Member
I think you might ahve mis understood.
I want to run it multiple times, not over and over.
I just want it to run about 1-2 more times. IE: 3 copys of the same program open at once.
Look through your dreams through a mirror,
-
May 19th, 2003, 08:51 PM
#8
Addicted Member
OHHHHHH...my bad. I misunderstood your post! Most apps' dont allow you to run multiple instances of a program. The main command to do that is to use the App.Previousinstance, and this just checks the EXE name and sees if its already loaded. To bypass this, reCopy and rename the exe you want to run! Others check the window title and close the app if it's another window with the same title was found. This requires hex editing to change the title of the window!
-
May 19th, 2003, 08:53 PM
#9
Fanatic Member
Originally posted by INF3RN0666
LOL WOW...now i've seen everything. Someone asks the simplest vb question, another person tells him to learn C++ instead. IF HE WANTS TO LEARN VB, LET HIM LEARN IT!
I'm sorry about some of the useless people on this forum *I WONT NAME NAMES BECAUSE I COULD BE ONE OF THEM*. ANYWAYS!
shelling a few times your own app is quite trivial, i dont think most of the people on this board would need an advice for that. shelling a few times another app which is not designed to is quite different.
you dont have to name names, it is quite obvious who you were considering useless, thanks. im not opposed to anybody learning vb, and i would recommend the appropriate tool for the appropriate task. since you consider you have seen everything, you know what you have to do now.
there are 2 reasons why i leave my work unfinished:
(1) i'm getting old.
-
May 19th, 2003, 08:57 PM
#10
Addicted Member
Sorry but he didn't ask if he should use C++. So don't tell him to learn C++ when he asked how to do something in VB. If it's not doable, then tell him that it can't be done and then he'll ask "WHAT MUST I DO" and u tell him "C++, J, SOMETHING OTHER THAN VB"!
Just put it this way, if you ask how to get the cursor position in VB and I tell you that VB is too slow to control the cursor, so go learn C++. Wouldn't that be annoying.
-
May 19th, 2003, 09:04 PM
#11
Fanatic Member
Originally posted by INF3RN0666
Sorry but he didn't ask if he should use C++. So don't tell him to learn C++ when he asked how to do something in VB. If it's not doable, then tell him that it can't be done and then he'll ask "WHAT MUST I DO" and u tell him "C++, J, SOMETHING OTHER THAN VB"!
Just put it this way, if you ask how to get the cursor position in VB and I tell you that VB is too slow to control the cursor, so go learn C++. Wouldn't that be annoying.
you have misread that post too. i said *I* wouldnt do that in VB, and i said c++ would be more appropriate. i made no assumptions about his c++ knowledge, no assumption about whether what he asks can be done in vb or not, and havent sent anybody to the c++ manuals.
cursor position is retrieved with the same system function in both c and vb. no difference.
there are 2 reasons why i leave my work unfinished:
(1) i'm getting old.
-
May 19th, 2003, 10:26 PM
#12
its a little unclear what exactly you want. Do you want to run multiple copies of a program you are writing? Or load a DIFFERENT program, such as aol, many times?
If its your own program, i believe there is a setting that allows you to do that in the compile menu.
-
May 19th, 2003, 10:55 PM
#13
Thread Starter
Junior Member
Look through your dreams through a mirror,
-
May 20th, 2003, 12:11 AM
#14
The picture isn't missing
if you can't load it several times manually you won't be able to do it several times programmably (or whatever the word is)
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
May 20th, 2003, 05:41 AM
#15
Addicted Member
I don't want to question your knowledge BuggyProgrammer but you can run several instances of a program programatically even if you can't do it manually. It's been done, and an example of it would be dual MSN windows open. :S Right...or wrong?
Like I said...Some programs use the simple VB method to detect previous instances which can be bypasses by changing the executable's filename and running it. Other programs may check to see the window's title and shut down if another one is found. Obviously there are many more ways, but some of them can be easily bypassed, others require Hex Editing knowledge, and some require ASM knowledge.
Maerd --> Which program do you want to run multiple isntances of? Maybe I can see if I can find a way around the programming.
-
May 20th, 2003, 03:21 PM
#16
Thread Starter
Junior Member
A VB game.. it's quite ellaberate.
Look through your dreams through a mirror,
-
May 21st, 2003, 04:57 AM
#17
Addicted Member
I meant as in I need to know its name and where to get it from. Maybe I can crack it for you. If I can't, then you'll need someone who can hex edit like a pro, or knows asm like a pro!
-
May 21st, 2003, 07:01 AM
#18
Thread Starter
Junior Member
Xiaspora - http://nigh.no-ip.com:100/
All you need is the main download, the other ones are unnessecary, unless you plan on playin it.
Look through your dreams through a mirror,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|