PortValhalla/scripts/Windows/Software/tobii-ghost/Ghost.ahk

23 lines
562 B
AutoHotkey
Raw Normal View History

2024-11-29 00:13:58 +00:00
InstallGhost() {
SetDefaultMouseSpeed(100)
SetTitleMatchMode("RegEx")
windowTitle := "^Tobii Ghost$"
2023-07-16 23:41:23 +00:00
2024-11-29 00:13:58 +00:00
Run("setup.exe")
WinWait(windowTitle, unset, 60)
WinActivate(windowTitle)
MouseClick("Left", 44, 694)
MouseClick("Left", 330, 752)
WinWaitNotActive()
WinWait(windowTitle, unset, 20)
MouseClick("Left", 563, 397)
MouseClick("Left", 650, 497)
Sleep(10 * 1000)
WinActivate(windowTitle)
pid := WinGetPID()
Run("pwsh -c Stop-Process -Force " . pid)
2023-07-16 23:41:23 +00:00
}
SetWorkingDir(A_InitialWorkingDir)
2023-07-16 23:41:23 +00:00
InstallGhost()