Sign in to follow this  
Followers 0
Cuervo

Keyed Pause in a script?

9 posts in this topic

I'm trying to set a hotkey to pause a script. What I have right now, but it's not pausing the script.

Global $Paused
HotKeySet("{F12}", "TogglePause")

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"',0,0)
    WEnd
    ToolTip("")
EndFunc

-Tim

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

Ok, here you go. Thanks for looking

NVM, I got it to work. Doh!

Edited by Cuervo

-Tim

Share this post


Link to post
Share on other sites

F12 It is also reserved by Windows, according to its API.

Share this post


Link to post
Share on other sites

Well F12 is a hotkey set with IsPressed() in my media player no problems there.


[center][/center]

Share this post


Link to post
Share on other sites

Well F12 is a hotkey set with IsPressed() in my media player no problems there.

I think you can use it on some versions of Windows and not others. There is mention of it being reserved in the help file too.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

Oh well XP Pro it works fine... but that makes sence..


[center][/center]

Share this post


Link to post
Share on other sites

Oh well XP Pro it works fine... but that makes sence..

I just looked it up and it appears to be reserved only when using certain communication protocalls.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

Ok well that means I need to change my hotkeys so my media player doesn't interfere with them. Thanks!


[center][/center]

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