francys 0 Posted September 11, 2011 I have a script that is running. When you log out or shutdown, the script should be stopped. how? Share this post Link to post Share on other sites
JohnOne 1,603 Posted September 11, 2011 It depends on your script. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites
francys 0 Posted September 11, 2011 (edited) A loop that is running While HotKeySet ("^ h", "terminate")...Wend Func Terminate () Exit 0EndFunc When the person logout or shutdown script must also be completed Otherwise the claim saying that windows has a program running Edited September 11, 2011 by francys Share this post Link to post Share on other sites
JohnOne 1,603 Posted September 11, 2011 Do you realize "While HotKeySet ("^ h", "terminate")" will be constantly setting the hotkey. I would have thought that the script would end automatically if logging off, unless you were running as another user, that's what I meant. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites
francys 0 Posted September 11, 2011 The script must end if the user logout and forget to press CTRL + H Share this post Link to post Share on other sites
JohnOne 1,603 Posted September 11, 2011 Not sure, but take a look at @ExitMethod macro <- helpfile. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites
francys 0 Posted September 11, 2011 The help has a detailed description of this macro I will continue searching. Share this post Link to post Share on other sites