Jump to content

Recommended Posts

Posted

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?

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
Posted

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?

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