[PA] 업무자동화/[AH]Autohotkey
AH Gui control click했을 때 반응하기
Weneedu
2023. 3. 5. 13:27
2023.03.04
text를 클릭했을 때 대화창 띄우기
💥hwndxxx는 window handle값을 xxx에 넣으라는 뜻
Gui, Add, text, w200 cBlue gzLink hwndXXX, click here ; Gui object의 id라고 생각하자; hwnd는 접두어
Gui, show
return
zLink:
MouseGetPos,,,, Hclick,2 ; 마우스가 가리키는 곳의 window id라고 생각하자.
ztmp:="XXX"
MsgBox,% Hclick
if (Hclick = %ztmp%) {
MsgBox, clicked
}
return
^ESC:: ExitApp
output screencapture

