Refactor installation of Game Hub

This commit is contained in:
Manuel Thalmann 2023-07-20 00:43:35 +02:00
parent 62224f1ab0
commit 19fe5d742e

View file

@ -1,5 +1,6 @@
InstallGameHub()
{
SetDefaultMouseSpeed(10)
SetTitleMatchMode("RegEx")
windowTitle := "^Tobii Game Hub$"
@ -12,6 +13,10 @@ InstallGameHub()
MouseClick("Left", 936, 662)
Sleep(10 * 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)
}