Install Tobii apps for user
This commit is contained in:
parent
55fb262864
commit
a46a59f57c
7 changed files with 52 additions and 28 deletions
scripts/Windows/Software
19
scripts/Windows/Software/TobiiGameHub/GameHub.ahk
Normal file
19
scripts/Windows/Software/TobiiGameHub/GameHub.ahk
Normal file
|
@ -0,0 +1,19 @@
|
|||
InstallGameHub()
|
||||
{
|
||||
SetTitleMatchMode, RegEx
|
||||
windowTitle := "^Tobii Game Hub$"
|
||||
|
||||
Run, "setup.exe"
|
||||
WinWait % windowTitle,, 60
|
||||
WinActivate % windowTitle
|
||||
MouseClick, Left, 485, 365
|
||||
MouseClick, Left, 600, 455
|
||||
MouseClick, Left, 533, 623
|
||||
MouseClick, Left, 936, 662
|
||||
Sleep, 10 * 1000
|
||||
WinActivate % windowTitle
|
||||
WinGet, pid, PID
|
||||
Run, pwsh -c "Stop-Process -Force %pid%"
|
||||
}
|
||||
|
||||
InstallGameHub()
|
18
scripts/Windows/Software/TobiiGameHub/Install.ps1
Normal file
18
scripts/Windows/Software/TobiiGameHub/Install.ps1
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/pwsh
|
||||
param($context)
|
||||
$tempDir = $context.GetTempDirectory();
|
||||
$installer = "setup.exe";
|
||||
|
||||
Push-Location $tempDir;
|
||||
|
||||
choco install -y vcredist2013;
|
||||
|
||||
Write-Host "Installing Tobii Game Hub";
|
||||
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;
|
18
scripts/Windows/Software/TobiiGhost/Ghost.ahk
Normal file
18
scripts/Windows/Software/TobiiGhost/Ghost.ahk
Normal file
|
@ -0,0 +1,18 @@
|
|||
InstallGhost()
|
||||
{
|
||||
SetTitleMatchMode, RegEx
|
||||
windowTitle := "^Tobii Ghost$"
|
||||
|
||||
Run, "setup.exe"
|
||||
WinWait % windowTitle,, 60
|
||||
WinActivate % windowTitle
|
||||
MouseClick, Left, 44, 694
|
||||
MouseClick, Left, 330, 752
|
||||
WinWaitNotActive
|
||||
WinWait % windowTitle,, 20
|
||||
MouseClick, Left, 563, 397
|
||||
MouseClick, Left, 650, 497
|
||||
Sleep, 10 * 1000
|
||||
}
|
||||
|
||||
InstallGhost()
|
18
scripts/Windows/Software/TobiiGhost/Install.ps1
Normal file
18
scripts/Windows/Software/TobiiGhost/Install.ps1
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/pwsh
|
||||
param($context)
|
||||
$tempDir = $context.GetTempDirectory();
|
||||
$installer = "setup.exe";
|
||||
|
||||
Push-Location $tempDir;
|
||||
|
||||
choco install -y "dotnet-6.0-desktopruntime";
|
||||
|
||||
Write-Host "Installing Tobii Ghost";
|
||||
Write-Information "Downloading Tobii Ghost installer";
|
||||
Invoke-WebRequest "https://files.update.oem.tobii.com/Ghost/TobiiGhost.1.14.1-Setup.exe" -OutFile $installer;
|
||||
|
||||
Write-Information "Running Tobii Ghost installer";
|
||||
Start-Process -Wait -FilePath "$PSScriptRoot/Ghost.ahk";
|
||||
|
||||
Pop-Location;
|
||||
Remove-Item -Recurse $tempDir;
|
Loading…
Add table
Add a link
Reference in a new issue