![]() |
can someone tell me how to use the createmutex command to make a program runs its counterpart program after closing it
lets say program1- does anything i want, and it gets closed program2 - i want this one to know when the first one is closed and re open it |
I can't say I am aware of the createmutex command but there are other ways for one application to 'know' when another has closed. Quite easily if they are both written by yourself. Please elaborate.
|
Well, conventionally you use a mutex like this, though if you have two programs running in parallel you'd need to check for the mutex's existence periodically using a timer or a loop WITH A SLEEP STATEMENT IN IT (the number of BSOD's...). In fact you'd be better off using a hooked atom, checking the task list or actually actively notifying the program's counterpart through DDE, a window message or whatever.
:
Const ERROR_ALREADY_EXISTS = 183& |
| All times are GMT -5. The time now is 3:23 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC