Sup
I wanna know if there is any way make the program wait for a process.
I was about to use while,but it's blocking the execution of the program,so...
There is a button which is waiting the process and then it doing its stuff.
The program is a window application and using dialogs
Code:
case IDC_BUTTON1: v Process
while(isRunning("S4Client.exe")==false){}
^The waiting func
You cannot wait in that case-block, since you are within the message loop of a window and it wouldn't react anymore, if you did.
You could use a thread or a timer; since it's just that little task, i would tend to use the timer. You create a timer that ticks every 100ms and add a handler for it to your message loop.
I've never tried this before but it should be possible to install a global windows hook which receives a notification when the S4Window has been created:
>> >>
Quote:
You could use a thread or a timer; since it's just that little task, i would tend to use the timer. You create a timer that ticks every 100ms and add a handler for it to your message loop.
You cannot wait in that case-block, since you are within the message loop of a window and it wouldn't react anymore, if you did.
You could use a thread or a timer; since it's just that little task, i would tend to use the timer. You create a timer that ticks every 100ms and add a handler for it to your message loop.
Use timer?SetTimer or?
Quote:
Originally Posted by Naworia
Use Autoit library so you can it easy.
You may use Autoit function in C++ or?
EDIT: Tried but again it's freeze
to get the Handle of the process, use 'PROCESS_ALL_ACCESS', and inherit the handle (second parameter true).
pass the handle and the maximum time you wish to wait.
Create an Event after the WaitForSingleObject call to notify your main thread.
Put these three calls in a function and in your main thread you just let yourself be notified via the event you set up (see MSDN).
Finally, call on that function. Once the target application terminates, your secondary thread will unblock and create an event which notifies your main thread.
I've never tried this before but it should be possible to install a global windows hook which receives a notification when the S4Window has been created:
>>
>>
Polling is...
Impossible, S4 is protected by XTrap, a long time before the window is created and i am **** sure, he wants to write a trainer.
Quote:
Originally Posted by tnd0
The Correct way:
Nope, it's wrong, he wants to wait untill S4 starts and not untill it terminates.
I put the stuff i wanna do in a function,but the IsDlgButtonChecked isn't work.
I mean after the while,i made it,but it didn't do anything...I hope you get me
I put the stuff i wanna do in a function,but the IsDlgButtonChecked isn't work.
I mean after the while,i made it,but it didn't do anything...I hope you get me
Did your programm freez or what ?
It shouldn't freeze if you do ur stuff in a thread.
[VIP-function] ToxicSYS [VIP-function] 08/14/2010 - WarRock Hacks, Bots, Cheats & Exploits - 1 Replies heeeey E-pvpers :pimp:
this is a new hack by TSYS
Status : UNDETECTED
Functions (VIDEO) :
YouTube - WarRock - Bikini event VIP hack
[FRIENDLY WAITING ROOM]Cheat Engine waiting updates here.. 07/06/2009 - Grand Chase - 49 Replies Since,many of us are really craving for teh updated MLE or other Engine.
I would like to create this thread to fix and clean this GC Area section..As we could see..Many threads are being revived and some are fake threads..
At this thread..We all are working as one.I promise..If i got and hunt the new engine i'll be updating this thread soon..This thread will be permanent in case of losing Engine again.
TAKE NOTE: We are all taking this engines for granted. We are enjoying games because of...
We are all waiting!!! 10/18/2007 - WarRock - 3 Replies Hi all!!! We are all waiting for the new GST tool hack!!! i think was one of the best, or the best, public hack i used!!! no bugs at all!! please update it!!!!
thanks all!!!
im waiting for the ban 04/28/2006 - Conquer Online 2 - 1 Replies when will you ban my acc?