Jump to content

Recommended Posts

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!
Link to post
Share on other sites

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!
Link to post
Share on other sites
  • Administrators

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.

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...