The Program Manager window is always there during a Windows session. When it disappears, that is your signal to exit your script. Here is a simple script to get the Program Manager window title in any language: //Close all windows before running this script //Run this script from Start>Run GetActiv...
Sorry but i don't understand Open up View System Windows. Scroll to the bottom. On an English system you will see: + 131248 - Progman "Program Manager" I don't see interest of Program Manager in my script, really :?: :?: But i have this in the MS system windows Nobody know if we can get the shutdown...
Hi Kilborr, The OnEvent for the "Program Manager" window closing should work. When "Program Manager" is closed, you desktop has disappeared. Macro Scheduler should still be running unless your other program already stopped Macro Scheduler. OnEvent>WINDOW_NOTOPEN,Program Manager,2,ExitScript SRT>Exi...
Gale, The following script is an altered version of what you posted. I compiled it and ran it then shutdown the computer. No log file is created. I think the method mentioned HERE might work. // COMPILE_OPTS|C:\Documents and Settings\dickl\My Documents\Macro Scheduler 11\Detect Process not running....
You are saying the script runs continuously and you want it to stop gracefully when you manually shut down Windows. You can use an OnEvent KEY_DOWN event to detect you clicked whatever key you want to use as a trigger for the script to exit. You can also use OnEvent WINDOW_OPEN for the "Shut Down W...
Hi Kilborr, Try OnEvent triggered by the desired key stroke. OnEvent will run a subroutine which can contain your exit code. Gale OK ... I "force" stop the script when i shutdown windows (because the script is so complex so i doest want to shutdown windows inside the script...) so can "OnEvent" det...
Hi everybody, I had made a script which is running everytime on my computer. I have a label which write to a file some informations taken from the script But i want to know how to go to this label automatically when i close manually the script (right click or with shortcut) I hope you understand my ...