Jump to content

Pause Func?


Recommended Posts

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

When the words fail... music speaks.

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...