PortValhalla/scripts/Windows/Drivers/Tobii EyeX/Ghost.ahk

23 lines
456 B
AutoHotkey
Raw Normal View History

2023-07-16 23:41:23 +00:00
InstallGhost()
{
SetTitleMatchMode, RegEx
windowTitle := "^Tobii Ghost$"
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
WinActivate % windowTitle
WinGet, pid, PID
Run, pwsh -c "Stop-Process -Force %pid%"
2023-07-16 23:41:23 +00:00
}
InstallGhost()