Opened 17 months ago
Last modified 9 months ago
#3961 assigned Feature Request
HotKeySet and Send extended function keys — at Initial Version
Reported by: | Andreik | Owned by: | |
---|---|---|---|
Milestone: | Component: | AutoIt | |
Version: | Severity: | None | |
Keywords: | Cc: |
Description
Since the extended function keys (F13 - F24) are introduced again with some new keyboards (for example Satechi Slim W3) it would be nice to have support for such keys in functions like HotKeySet and Send. I know these keyboards are rare but looking over an older version of AutoIt source code this task should be trivial and without too much effort to implement. Basically just increase NUMKEYS with 12 and add corresponding entries in g_szKeyTable, g_cKeyLookupType and g_nKeyCodes. If HotKeySet() and Send() didn't changed too much in the newer versions of AutoIt this should be everything that has to be done in order to add support for these extended keys. I had the source code of AutoIt v3.1.0.15 so I compiled a version with the modifications suggested above and run with success scripts like this:
HotKeySet('{ESC}', 'Quit') HotKeySet('{F17}', 'Test') Send('{F17}') While 1 Sleep(10) WEnd Func Quit() Exit EndFunc Func Test() MsgBox(0, '', 'Yayyyy!') Exit EndFunc
PS: if it's needed I can attach the compiled version for further tests