Refactor installation of Game Hub
This commit is contained in:
parent
62224f1ab0
commit
19fe5d742e
1 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
InstallGameHub()
|
InstallGameHub()
|
||||||
{
|
{
|
||||||
|
SetDefaultMouseSpeed(10)
|
||||||
SetTitleMatchMode("RegEx")
|
SetTitleMatchMode("RegEx")
|
||||||
windowTitle := "^Tobii Game Hub$"
|
windowTitle := "^Tobii Game Hub$"
|
||||||
|
|
||||||
|
@ -12,6 +13,10 @@ InstallGameHub()
|
||||||
MouseClick("Left", 936, 662)
|
MouseClick("Left", 936, 662)
|
||||||
Sleep(10 * 1000)
|
Sleep(10 * 1000)
|
||||||
WinActivate(windowTitle)
|
WinActivate(windowTitle)
|
||||||
|
MouseClick("Left", 1150, 60)
|
||||||
|
MouseClick("Left", 518, 203)
|
||||||
|
Sleep(10 * 1000)
|
||||||
|
WinActivate(windowTitle)
|
||||||
pid := WinGetPID()
|
pid := WinGetPID()
|
||||||
Run("pwsh -c Stop-Process -Force " . pid)
|
Run("pwsh -c Stop-Process -Force " . pid)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue