Jump to content

cancel script detect logout or shutdown


francys
 Share

Recommended Posts

A loop that is running

While HotKeySet ("^ h", "terminate")

...

Wend

Func Terminate ()

Exit 0

EndFunc

When the person logout or shutdown script must also be completed

Otherwise the claim saying that windows has a program running

Edited by francys
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...