Code: Show/Hide else if (option == "run")
{ cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; cout<<"Feature is being worked on \n"; system("pause"); ShellExecute(NULL, "open", "server\\Subbill.exe", NULL, NULL, SW_SHOWNORMAL); Sleep(3000); ShellExecute(NULL, "open", "server\\subgame2.exe",NULL, NULL, SW_SHOWNORMAL); Sleep(3000); ShellExecute(NULL, "open", "bot\\MERVbot.exe",NULL, NULL, SW_SHOWNORMAL); Sleep(3000); ShellExecute(NULL, "open", "bot1\\MERVbot.exe",NULL, NULL, SW_SHOWNORMAL); Sleep(3000); ShellExecute(NULL, "open", "bot1\\MERVbot.exe",NULL, NULL, SW_SHOWNORMAL); Sleep(3000); return main(); } |
Animate Dreams wrote: |
Can you even call Sleep() if you're not a thread? |
Code: Show/Hide HINSTANCE ShellExecute( HWND hwnd, LPCTSTR lpOperation, LPCTSTR lpFile, LPCTSTR lpParameters, LPCTSTR lpDirectory, INT nShowCmd ); |
Bak wrote: |
when you double click on them in that order, do they stay open? |
Quote: |
They are probably closing because he has not provided the working directory. Which means they cant find the files they are looking for. |
hellzlaker wrote: |
[..]
no it finds it and opens it up, and it says subgame and the bots do open they just close a second later but you get a chance to see what it says |
Code: Show/Hide ShellExecute(NULL, "open", "server\\subgame2.exe",NULL, "server\\", SW_SHOWNORMAL); |
hellzlaker wrote: | |
im trynna make a program that opens the following windows but i have a problem, it opens the first window (subbill) and turns others for like 1 second and closes them
here is the code
can you tell me why is it happening and how to fix it? |