Sign in to follow this  
Followers 0
Gordoni

Pause Func?

2 posts in this topic

Any one know how to pause func when running ?

Gordoni


Share this post


Link to post
Share on other sites



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

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  
Followers 0