Code: Select all
Gui, Add, Hotkey, vHotkey1, -
Gui, Add, Hotkey, vHotkey2, +
Gui, Add, Hotkey, vHotkey3, NumpadAdd
Gui, Add, Hotkey, vHotkey4, NumpadMult
Gui, Add, Hotkey, vHotkey5, NumpadDiv
Gui, Add, Hotkey, vHotkey6, *
Gui, Add, Button, gCheck, Check
Gui, Show
return
Check:
msg := ""
loop
{
GuiControlGet, current,, Hotkey%A_Index%
if(ErrorLevel)
break
msg .= A_Index ": " current "`n"
}
MsgBox, % msg
return
GuiClose:
ExitApp
Some keys are displayed correctly, some are displayed with a wrong displaying and some are not displayed at all.
When you press check, you'll get the contents of each control. Some of they are wrong.
Further steps:
Try to enter + manually into the second field. It's correctly displayed and read when you "Check" it.
Everything tested on a german Windows 8.1 system with german keyboard layout.
AHK: 1.1.13.01