francys Posted September 11, 2011 Share Posted September 11, 2011 I have a script that is running. When you log out or shutdown, the script should be stopped. how? Link to comment Share on other sites More sharing options...
JohnOne Posted September 11, 2011 Share 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. Link to comment Share on other sites More sharing options...
francys Posted September 11, 2011 Author Share 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 Link to comment Share on other sites More sharing options...
JohnOne Posted September 11, 2011 Share 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. Link to comment Share on other sites More sharing options...
francys Posted September 11, 2011 Author Share Posted September 11, 2011 The script must end if the user logout and forget to press CTRL + H Link to comment Share on other sites More sharing options...
JohnOne Posted September 11, 2011 Share 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. Link to comment Share on other sites More sharing options...
francys Posted September 11, 2011 Author Share Posted September 11, 2011 The help has a detailed description of this macro I will continue searching. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now