Jump to content
Sign in to follow this  
implite

turn on and off a HotKeySet

Recommended Posts

implite

I have the letter 'e' as a hoykey and I want to be able to pause this hot key so I can type if needed using the e key.

How can I turn on and off this hoykey in my script using HotKeySet?

Share this post


Link to post
Share on other sites
Tekki

I have the letter 'e' as a hoykey and I want to be able to pause this hot key so I can type if needed using the e key.

How can I turn on and off this hoykey in my script using HotKeySet?

make another hotkey that pauses the script. (hoykey? XD)

Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
       sleep(100)
    WEnd
EndFunc

If you intend to use Sarcasm you must this sticker!!![size="1"][sub]pic made by manadar[/sub][/size]

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.