It uses Onmessage, which i'm not familiar with
I basically need to know how to get the script to detect keys in any window,
Also how to specify detect keys only from a window labelled 1a, for example
The script im using ...
Code: Select all
SetFormat, Integer, Hex
Gui +ToolWindow -SysMenu +AlwaysOnTop
Gui, Font, s14 Bold, Arial
Gui, Add, Text, w100 h33 vSC 0x201 +Border, {SC000}
Gui, Show,, % "// ScanCode //////////"
Clipboard =
Loop
{
OnMessage( 255+A_Index, "ScanCode" ) ; 0x100 to 0x108
tooltip not pressed
Return
ScanCode( wParam, lParam ) {
Clipboard := "SC" SubStr((((lParam>>16) & 0xFF)+0xF000),-2)
GuiControl,, SC, %Clipboard%
tooltip pressed
}
}
esc::exitapp