Jump to content
Sign in to follow this  

Pause function

Recommended Posts

I am looking to pause a script if ^!+p is pressed... this is the script:

HotKeySet("^!+b", "quit")
HotKeySet("^!+p", "pause")

AutoItSetOption("TrayAutoPause", 0)

Func quit()
 MsgBox(64, "Exit", "The question eliminator has exited.")

Func pause()
 $Paused = NOT $Paused
    While $Paused

MsgBox(64, "Running", "The question eliminator is running. At any time press CTRL-ALT-SHIFT-B to exit." & @CRLF & "You may also press CTRL-ALT-SHIFT-P to pause/unpause the elimitator.")

While 1 
 If WinExists("Question", "OK") Then
  ControlClick("Question", "OK", 1)


This is an almost EXACT copy from the help file, as far as pause is concerned, so I'm confused as to why it's not working. Anyone know?

Share this post

Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...