Skip to content

Commit

Permalink
Au3 - Add Progress Bar
Browse files Browse the repository at this point in the history
Add Progress Bar to Au3
  • Loading branch information
rcmaehl committed Aug 7, 2020
1 parent 8ef27ff commit 51a51ac
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion FixMyRiftS.au3
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ Main()

Func Main()

RunWait("powershell -Command Get-PnpDevice -FriendlyName 'Rift S USB Hub' | Disable-PnpDevice -confirm:$false; Get-PnpDevice -FriendlyName 'Rift S USB Hub' | Enable-PnpDevice -confirm:$false")
$sVer = "0.1"

ProgressOn("Fix My Rift S " & $sVer, "Fixing Rift S")
ProgressSet(33, "Disabling USB Hub", "Fixing Rift S")
RunWait("powershell -Command Get-PnpDevice -FriendlyName 'Rift S USB Hub' | Disable-PnpDevice -confirm:$false", "", @SW_HIDE)
ProgressSet(67, "Enabling USB Hub", "Fixing Rift S")
RunWait("powershell -Command Get-PnpDevice -FriendlyName 'Rift S USB Hub' | Enable-PnpDevice -confirm:$false", "", @SW_HIDE)
ProgressSet(100, "Done", "Fixing Rift S")
Sleep(1000)
ProgressOff()

EndFunc

0 comments on commit 51a51ac

Please sign in to comment.