Search found 8 matches

by kilborr
Fri Jun 12, 2009 7:06 am
Forum: Technical / Scripting
Topic: Goto a label when script manually closed
Replies: 15
Views: 13810

:? :?
It's verry hard to do to only intercept shutdown signal.

Thanks for you search and you answers, but i will let the script as he is now


Maybe i will have another question so i come back here ...


Thanks
by kilborr
Thu Jun 11, 2009 3:59 pm
Forum: Technical / Scripting
Topic: Goto a label when script manually closed
Replies: 15
Views: 13810

Re: The signal

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...
by kilborr
Thu Jun 11, 2009 2:53 pm
Forum: Technical / Scripting
Topic: Goto a label when script manually closed
Replies: 15
Views: 13810

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...
by kilborr
Thu Jun 11, 2009 7:19 am
Forum: Technical / Scripting
Topic: Goto a label when script manually closed
Replies: 15
Views: 13810

Re: OnEvent should work.

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...
by kilborr
Thu Jun 11, 2009 7:18 am
Forum: Technical / Scripting
Topic: Goto a label when script manually closed
Replies: 15
Views: 13810

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....
by kilborr
Wed Jun 10, 2009 4:17 pm
Forum: Technical / Scripting
Topic: Goto a label when script manually closed
Replies: 15
Views: 13810

Re: OnEvent

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...
by kilborr
Wed Jun 10, 2009 2:43 pm
Forum: Technical / Scripting
Topic: Goto a label when script manually closed
Replies: 15
Views: 13810

Re: goto>label

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...
by kilborr
Wed Jun 10, 2009 7:37 am
Forum: Technical / Scripting
Topic: Goto a label when script manually closed
Replies: 15
Views: 13810

Goto a label when script manually closed

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 ...
Sign up to our newsletter for free automation tips, tricks & discounts