Jump to content
Sign in to follow this  
Gordoni

Pause Func?

Recommended Posts

Gordoni

Any one know how to pause func when running ?

Gordoni


Share this post


Link to post
Share on other sites
Andreik

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.