Jump to content

Recommended Posts

Posted

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!
  • Administrators
Posted

Well, it's how I designed it. I had to write code to make it buffer - it wasn't an accident.


 

  • Administrators
Posted

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.


 

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