2023-07-16 23:53:36 +00:00
|
|
|
InstallGameHub()
|
|
|
|
{
|
|
|
|
SetTitleMatchMode, RegEx
|
|
|
|
windowTitle := "^Tobii Game Hub$"
|
|
|
|
|
2023-07-17 00:45:34 +00:00
|
|
|
Run, "setup.exe"
|
2023-07-16 23:53:36 +00:00
|
|
|
WinWait % windowTitle,, 60
|
|
|
|
WinActivate % windowTitle
|
|
|
|
MouseClick, Left, 485, 365
|
|
|
|
MouseClick, Left, 600, 455
|
|
|
|
MouseClick, Left, 533, 623
|
|
|
|
MouseClick, Left, 936, 662
|
2023-07-17 00:45:34 +00:00
|
|
|
Sleep, 10 * 1000
|
|
|
|
WinActivate % windowTitle
|
|
|
|
WinGet, pid, PID
|
|
|
|
Run, pwsh -c "Stop-Process -Force %pid%"
|
2023-07-16 23:53:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
InstallGameHub()
|