PortValhalla/scripts/Windows/Drivers/Tobii EyeX/GameHub.ahk

20 lines
391 B
AutoHotkey
Raw Normal View History

2023-07-16 23:53:36 +00:00
InstallGameHub()
{
SetTitleMatchMode, RegEx
windowTitle := "^Tobii Game Hub$"
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
Sleep, 10 * 1000
WinActivate % windowTitle
WinGet, pid, PID
Run, pwsh -c "Stop-Process -Force %pid%"
2023-07-16 23:53:36 +00:00
}
InstallGameHub()