오토핫키
[오토핫키] Edit 창 누르면 공백으로 바뀌기
징쟝
2018. 4. 6. 16:46
Gui, Add, Text,, Click anywhere in the Edit control.
Gui, Add, Edit, r9 w200 vMyEdit +HWND_Edit, Text to appear inside the edit control (omit this parameter to start off empty).
Gui, Show
OnMessage(0x201, "WM_LBUTTONDOWN")
return
WM_LBUTTONDOWN(wParam, lParam)
{
global _Edit
if (A_GuiControl = "MyEdit")
ControlSetText,,, ahk_id %_Edit%
}
GuiClose:
ExitApp