Modify

Opened 3 years ago

Last modified 2 years ago

#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, 3 years ago

Version: 3.3.16.1

Automatic ticket cleanup.

comment:2 by mLipok, 3 years ago

Description: modified (diff)

comment:3 by J-Paul Mesnage, 3 years ago

Owner: set to J-Paul Mesnage
Status: newassigned

Thanks
fix sent to Jon

comment:4 by J-Paul Mesnage, 2 years ago

Owner: changed from J-Paul Mesnage 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.