Opened 17 years ago
Last modified 17 years ago
#128 closed Feature Request
Accelerator Tables — at Initial Version
Reported by: | Saunders <admin@…> | Owned by: | |
---|---|---|---|
Milestone: | 3.2.11.3 | Component: | AutoIt |
Version: | Severity: | ||
Keywords: | accelerator table window specific local hotkey | Cc: |
Description
I can't believe I forgot about this feature request when we moved to trac. I know it's probably not priority, but I'm posting it here so it doesn't get lost.
Quoting Valik from this post:
This idea came to me in another thread but I'm posting it here in case somebody wants to take the idea and run. Adding support for accelerator tables to AutoIt would be pretty simple. Make a wrapper function which calls CreateAccelerateTable()/LoadAccelerators(). I would expect the CreateAcceleratorTable() wrapper function to take a 2 dimensional array where element 0 is a Send()-compatible hotkey string and element 1 is the control ID to invoke. The CreateAcceleratorTable() should then automatically call LoadAccelerators() and as long as TranslateAccelerators() is called in the message pump, AutoIt GUI's will magically support accelerator keys.
For those who don't know, an accelerator table allows the creation of hotkeys which when pressed will trigger an event in the GUI (A button press, et cetera) but only while that GUI is active. It's keyboard shortcuts, basically.