Modify

#3961 assigned Feature Request

HotKeySet and Send extended function keys

Reported by: Andreik Owned by: Jon
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:

Description (last modified by mLipok)

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

Attachments (0)

Change History (4)

comment:1 by TicketCleanup, on Jul 3, 2023 at 9:00:01 PM

Version: 3.3.16.1

Automatic ticket cleanup.

comment:2 by mLipok, on Jul 10, 2023 at 2:11:38 PM

Description: modified (diff)

comment:3 by Jpm, on Jul 11, 2023 at 7:51:50 AM

Owner: set to Jpm
Status: newassigned

Thanks
fix sent to Jon

comment:4 by Jpm, on Feb 20, 2024 at 3:43:31 PM

Owner: changed from Jpm to Jon

Modify Ticket

Action
as assigned The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.