-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWatcher.ahk
More file actions
executable file
·46 lines (46 loc) · 1.67 KB
/
Watcher.ahk
File metadata and controls
executable file
·46 lines (46 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#SingleInstance Force
CoordMode, Mouse, Screen
CoordMode, Pixel, Screen
Gui, 10:+AlwaysOnTop -SysMenu -Caption +Border
Gui, 10:Font, s9, Terminal
Gui, 10:Add, Edit, +ReadOnly -VScroll +Right x0 y0 w74 h235, ; Edit1
Gui, 10:Add, Edit, +ReadOnly -VScroll +HScroll x74 y0 w185 h279, ; Edit2
Gui, 10:Add, Edit, x0 y237 w78 h60 -VScroll,
Gui, 10:Show, x0 w260 h280 , Watcher
ControlSetText, Edit1, % "WinTitle`r`nI.D.`r`nClass`r`nWidth`r`nHeight`r`nX-pos`r`nY-pos`r`n________`r`nControl`r`nHwnd/ID`r`nClassNN`r`nWidth`r`nHeight`r`nX-pos`r`nY-pos`r`n________`r`nMouse-X`r`nMouse-Y`r`nColor", Watcher
Loop,
{
MouseGetPos, xx, yy, WinID, CtrlCls
PixelGetColor, var11, %xx%, %yy%, Alt RGB
Gui, 10:Color,, % var11
WinGetTitle, WinTtl, AHK_ID %WinID%
WinGetClass, WinCls, AHK_ID %WinID%
WinGetPos, wpxx, wpyy, wpww, wphh, AHK_ID %WinID%
ControlGetText, CtrlTtll, %CtrlCls%, AHK_ID %WinID%
StringReplace, CtrlTtl, CtrlTtll, `r`n , %A_Space%, All
ControlGet, CtrlHwnd, Hwnd,, %CtrlCls%, AHK_ID %WinID%
ControlGetPos , cxx, cyy, cww, chh,, AHK_ID %CtrlHwnd%
ControlSetText, Edit2, % WinTtl "`r`n" WinID "`r`n" WinCls "`r`n" wpww "`r`n" wphh "`r`n" wpxx "`r`n" wpyy "`r`n______________________`r`n" CtrlTtl "`r`n" CtrlHwnd "`r`n" CtrlCls "`r`n" cww "`r`n" chh "`r`n" cxx "`r`n" cyy "`r`n____________________________`r`n" xx "`r`n" yy "`r`n" var11, Watcher
/*
Loop,
{
MouseGetPos, xx2, yy2
If (xx2 != xx) || (yy2 != yy)
{
Break
}
If GetKeyState("LButton", "P")
{
SendInput, {LButton Down}
Break
}
}
If GetKeyState("LButton", "P")
{
Break
}
*/
Sleep, 45
}
SendInput, {LButton Up}
ExitApp