Sign in to follow this  
Followers 0
DaLiMan

Pause

5 posts in this topic

Hi Guy's

I took this from the HELP file, but i cannot make it work somehow.

The script does indeed pause, but in no way I can make it resume it's task....

HotKeySet("{F11}", "TogglePause")
;
pieces of script....
;
Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"',0,0)
    WEnd
    ToolTip("")
EndFunc

Do I miss anything?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Did you set the variable as Global?

If you didnt (and in the scrap here you didnt) the variable value may be reset everytime you hit F11.

Edited by ezzetabi

Share this post


Link to post
Share on other sites

Did you set the variable as Global?

If you didnt (and in the scrap here you didnt) the variable value may be reset everytime you hit F11.

OK, so how do i set it as global?

Share this post


Link to post
Share on other sites

Begin of the script:

Global $Paused

btw... Read the manual :D

Share this post


Link to post
Share on other sites

Thanks, now it works!!! :D

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