Sign in to follow this  
Followers 0
CyberSlug

Hotkey Buffering

5 posts in this topic

If you pause a script via its tray icon, the script will still buffer any HotKeys and execute them once the script is resumed.

1) Run the provided script, and optionally press ScrollLock a few times

2) Use the tray icon to pause the script

3) Hit ScrollLock two or three times

4) Unpause the script

HotKeySet("{ScrollLock}", "foo")

Run("notepad");use for output of Send commands
While 1
   sleep(100)
WEnd

Func foo()
   WinActivate("Untitled - Notepad")
   Send("this is a message")
EndFunc

Feature or bug? I'd say "undesired behavior." :whistle:


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

But even when the script is "Paused" with the tray icon??? I only like the buffering when the script is running. :whistle:

If the behavior is what you want, I'll document it in HotKeySet.

Edited by CyberSlug

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

I can make it throw away keys when paused I guess. But if you buffer up lots of keys and then pause it they will already have been in the buffer and will execute when you unpause.

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