PortValhalla/scripts/Windows/Software/tobii-gamehub/GameHub.ahk

26 lines
646 B
AutoHotkey
Raw Normal View History

2024-11-29 00:13:58 +00:00
InstallGameHub() {
SetDefaultMouseSpeed(100)
SetTitleMatchMode("RegEx")
windowTitle := "^Tobii Game Hub$"
2023-07-16 23:53:36 +00:00
2024-11-29 00:13:58 +00:00
Run("setup.exe")
WinWait(windowTitle, unset, 60)
WinActivate(windowTitle)
Sleep(2 * 1000)
MouseClick("Left", 485, 365)
MouseClick("Left", 600, 455)
MouseClick("Left", 533, 623)
MouseClick("Left", 936, 662)
Sleep(4 * 1000)
WinActivate(windowTitle)
MouseClick("Left", 1150, 60)
MouseClick("Left", 518, 203)
Sleep(10 * 1000)
WinActivate(windowTitle)
pid := WinGetPID()
Run("pwsh -c Stop-Process -Force " . pid)
2023-07-16 23:53:36 +00:00
}
SetWorkingDir(A_InitialWorkingDir)
2023-07-16 23:53:36 +00:00
InstallGameHub()