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