Neither can you set the media key values to the control as it's chosen hotkey using guicontrol.
Here is proof.
If you press a media key, such as browser_forward another one, Hokey Control will receive it - and you can even assign the dynamic hotkey, but it leaves the control blank.
Expectation is that the key value shows in the control else it returns blank for keys it cannot work with.
If an improvement is made to this control, perhaps there could be an option to return it's key name instead.
Right now we can use getkeyname() to turn sc135int numpaddivbut it would be nicer to have it done automatically and for the control to recognize this as the hotkey instead of using sc135
Code: Select all
#SingleInstance force #NoEnv SetBatchLines, -1 Gui, Add, Hotkey, w150 vHK gLabel ;add a hotkey control gui, add, text, w250 vhotkeyreport cblue gui, add, text, w250, Try pushing media keys Gui, Show,,Hotkey Control Partially Working return GuiClose: ExitApp Label: Hotkey, %HK%, Label1, Off Gui, Submit, NoHide guicontrolget,HK if(!HK) return guicontrol,, hotkeyreport, Pushed: %HK% Hotkey, %HK%, Label1, On return ;This label may contain any commands for its hotkey to perform. Label1: MsgBox,% A_ThisLabel "`n" A_ThisHotkey return