Refactor Tobii Game Hub installation script

This commit is contained in:
Manuel Thalmann 2023-07-20 00:53:21 +02:00
parent 19fe5d742e
commit 11b85e36e6

View file

@ -1,17 +1,18 @@
InstallGameHub() InstallGameHub()
{ {
SetDefaultMouseSpeed(10) SetDefaultMouseSpeed(100)
SetTitleMatchMode("RegEx") SetTitleMatchMode("RegEx")
windowTitle := "^Tobii Game Hub$" windowTitle := "^Tobii Game Hub$"
Run("setup.exe") Run("setup.exe")
WinWait(windowTitle, unset, 60) WinWait(windowTitle, unset, 60)
WinActivate(windowTitle) WinActivate(windowTitle)
Sleep(2 * 1000)
MouseClick("Left", 485, 365) MouseClick("Left", 485, 365)
MouseClick("Left", 600, 455) MouseClick("Left", 600, 455)
MouseClick("Left", 533, 623) MouseClick("Left", 533, 623)
MouseClick("Left", 936, 662) MouseClick("Left", 936, 662)
Sleep(10 * 1000) Sleep(4 * 1000)
WinActivate(windowTitle) WinActivate(windowTitle)
MouseClick("Left", 1150, 60) MouseClick("Left", 1150, 60)
MouseClick("Left", 518, 203) MouseClick("Left", 518, 203)