From 771502238c953454afa2c268f67e1e26bf5c1a6d Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 17 Jul 2023 01:53:36 +0200 Subject: [PATCH] Automate Tobii Game Hub installation --- scripts/Windows/Drivers/Tobii EyeX/GameHub.ahk | 16 ++++++++++++++++ scripts/Windows/Drivers/Tobii EyeX/Install.ps1 | 6 +++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 scripts/Windows/Drivers/Tobii EyeX/GameHub.ahk diff --git a/scripts/Windows/Drivers/Tobii EyeX/GameHub.ahk b/scripts/Windows/Drivers/Tobii EyeX/GameHub.ahk new file mode 100644 index 00000000..68131689 --- /dev/null +++ b/scripts/Windows/Drivers/Tobii EyeX/GameHub.ahk @@ -0,0 +1,16 @@ +InstallGameHub() +{ + SetTitleMatchMode, RegEx + windowTitle := "^Tobii Game Hub$" + + Run, "setup.exe",,,pid + WinWait % windowTitle,, 60 + WinActivate % windowTitle + MouseClick, Left, 485, 365 + MouseClick, Left, 600, 455 + MouseClick, Left, 533, 623 + MouseClick, Left, 936, 662 + Process, Close, %pid% +} + +InstallGameHub() diff --git a/scripts/Windows/Drivers/Tobii EyeX/Install.ps1 b/scripts/Windows/Drivers/Tobii EyeX/Install.ps1 index 32950b58..4cbf2d58 100644 --- a/scripts/Windows/Drivers/Tobii EyeX/Install.ps1 +++ b/scripts/Windows/Drivers/Tobii EyeX/Install.ps1 @@ -20,7 +20,11 @@ Write-Information "Running Tobii Ghost installer"; Start-Process -Wait -FilePath "$PSScriptRoot/Ghost.ahk"; Write-Host "Installing Tobii Game Hub"; -Install-SoftwarePackage $context "https://files.update.oem.tobii.com/GameHub/TobiiGameHub.3.0.1-Setup.exe"; +Write-Information "Downloading Tobii Game Hub installer"; +Invoke-WebRequest "https://files.update.oem.tobii.com/GameHub/TobiiGameHub.3.0.1-Setup.exe" -OutFile $installer; + +Write-Information "Running Tobii Game Hub installer"; +Start-Process -Wait -FilePath "$PSScriptRoot/GameHub.ahk"; Pop-Location; Remove-Item -Recurse $tempDir;