22 lines
487 B
AutoHotkey
22 lines
487 B
AutoHotkey
InstallGhost()
|
|
{
|
|
SetTitleMatchMode("RegEx")
|
|
windowTitle := "^Tobii Ghost$"
|
|
|
|
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)
|
|
}
|
|
|
|
SetWorkingDir(A_InitialWorkingDir)
|
|
InstallGhost()
|