2023-07-16 23:41:23 +00:00
|
|
|
InstallGhost()
|
|
|
|
{
|
|
|
|
SetTitleMatchMode, RegEx
|
|
|
|
windowTitle := "^Tobii Ghost$"
|
|
|
|
|
2023-07-17 00:45:34 +00:00
|
|
|
Run, "setup.exe"
|
2023-07-16 23:41:23 +00:00
|
|
|
WinWait % windowTitle,, 60
|
|
|
|
WinActivate % windowTitle
|
|
|
|
MouseClick, Left, 44, 694
|
|
|
|
MouseClick, Left, 330, 752
|
|
|
|
WinWaitNotActive
|
|
|
|
WinWait % windowTitle,, 20
|
2023-07-17 00:46:07 +00:00
|
|
|
WinActivate % windowTitle
|
2023-07-16 23:41:23 +00:00
|
|
|
MouseClick, Left, 563, 397
|
2023-07-16 23:57:30 +00:00
|
|
|
MouseClick, Left, 650, 497
|
2023-07-16 23:48:33 +00:00
|
|
|
Sleep, 10 * 1000
|
2023-07-17 00:45:34 +00:00
|
|
|
WinActivate % windowTitle
|
|
|
|
WinGet, pid, PID
|
|
|
|
Run, pwsh -c "Stop-Process -Force %pid%"
|
2023-07-16 23:41:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
InstallGhost()
|