2023-07-16 23:41:23 +00:00
|
|
|
InstallGhost()
|
|
|
|
{
|
|
|
|
SetTitleMatchMode, RegEx
|
|
|
|
windowTitle := "^Tobii Ghost$"
|
|
|
|
|
|
|
|
Run, "setup.exe",,,pid
|
|
|
|
WinWait % windowTitle,, 60
|
|
|
|
WinActivate % windowTitle
|
|
|
|
MouseClick, Left, 44, 694
|
|
|
|
MouseClick, Left, 330, 752
|
|
|
|
WinWaitNotActive
|
|
|
|
WinWait % windowTitle,, 20
|
|
|
|
MouseClick, Left, 563, 397
|
|
|
|
MouseClick, Left, 548, 493
|
2023-07-16 23:48:33 +00:00
|
|
|
Sleep, 10 * 1000
|
|
|
|
Process % Close, pid
|
2023-07-16 23:41:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
InstallGhost()
|