Jump to content

Recommended Posts

Posted

Any one know how to pause func when running ?

Gordoni

An example:

Global $Pause
HotKeySet("{PAUSE}", "Pause")
HotKeySet("{ESC}", "Quit")

While 1
    TrayTip("Status","Script is running",3)
    Sleep(50)
WEnd

Func Pause()
    $Pause = NOT $Pause
    While $Pause
        TrayTip("Status","Script is paused",3)
        Sleep(20)
    WEnd
EndFunc

Func Quit()
    Exit
EndFunc

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
×
×
  • Create New...