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?
Printable View
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?
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.
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.
i wouldnt do that in vb anyways. c++ would be more appropriate for such an attempt.
(I don't know C++)
So how are those Cubs!?
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
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.
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!
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.Quote:
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!
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.
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.Quote:
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.
cursor position is retrieved with the same system function in both c and vb. no difference.
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.
Different program.
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)
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.
A VB game.. it's quite ellaberate.
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!
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.