I added a tooltip below. Although I do not have AltGr, I saw no problems with the Alt and Ctrl keys. Close other scripts before running this.
CODE:
#Requires AutoHotkey v1.1.35
#SingleInstance
ih:= InputHook()
ih.KeyOpt("{All}", "N")
ih.OnKeyDown := Func("FunctionTest")
ih.Start()
Return
FunctionTest(ih, vk, sc) {
Static str := ""
CoordMode ToolTip
sKeyDetect := GetKeyName(Format("vk{:x}sc{:x}", vk, sc))
ToolTip % str := SubStr(str sKeyDetect " ", -300), 20, 700
}
Statistics: Posted by mikeyww — Today, 09:42