Modify

Opened 10 months ago

Last modified 2 months 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 Changed 10 months ago by TicketCleanup

  • Version 3.3.16.1 deleted

Automatic ticket cleanup.

comment:2 Changed 10 months ago by mLipok

  • Description modified (diff)

comment:3 Changed 10 months ago by Jpm

  • Owner set to Jpm
  • Status changed from new to assigned

Thanks
fix sent to Jon

comment:4 Changed 2 months ago by Jpm

  • Owner changed from Jpm to Jon

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as assigned The owner will remain Jon.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.