2023-07-16 23:41:23 +00:00
|
|
|
InstallGhost()
|
|
|
|
{
|
2023-07-19 22:58:56 +00:00
|
|
|
SetDefaultMouseSpeed(100)
|
2023-07-17 21:58:31 +00:00
|
|
|
SetTitleMatchMode("RegEx")
|
2023-07-16 23:41:23 +00:00
|
|
|
windowTitle := "^Tobii Ghost$"
|
|
|
|
|
2023-07-17 21:58:31 +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)
|
2023-07-17 22:14:12 +00:00
|
|
|
WinActivate(windowTitle)
|
|
|
|
pid := WinGetPID()
|
2023-07-17 22:16:37 +00:00
|
|
|
Run("pwsh -c Stop-Process -Force " . pid)
|
2023-07-16 23:41:23 +00:00
|
|
|
}
|
|
|
|
|
2023-07-17 22:07:41 +00:00
|
|
|
SetWorkingDir(A_InitialWorkingDir)
|
2023-07-16 23:41:23 +00:00
|
|
|
InstallGhost()
|