I have a GUI that must use the keyboard Enter key as a hotkey. However, whenever the GUI loses focus to another application window, I need to release the Enter key. After studying the problem for a while, the SET and KILL Windows Message Codes appeared to be the solution so I implemented these steps to register them for use:
GUIRegisterMsg($WM_SETFOCUS, "On_Get_Focus")
GUIRegisterMsg($WM_KILLFOCUS, "On_Lost_Focus")
:
:
Func On_Get_Focus($wParam, $lParam)
MsgBox(32, "Got Focus", "", 1)
H