Update turn-volume-fully-up.ps1

This commit is contained in:
Markus Fleschutz 2023-02-02 13:56:45 +01:00 committed by GitHub
parent 88b854953d
commit 108ab94f5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
<# <#
.SYNOPSIS .SYNOPSIS
Turns audio volume fully up Turns the volume fully up
.DESCRIPTION .DESCRIPTION
This PowerShell script turns the audio volume fully up to 100%. This PowerShell script turns the audio volume fully up to 100%.
.EXAMPLE .EXAMPLE
@ -16,7 +16,6 @@ try {
for ([int]$i = 0; $i -lt 100; $i += 2) { for ([int]$i = 0; $i -lt 100; $i += 2) {
$obj.SendKeys([char]175) # each tick is +2% $obj.SendKeys([char]175) # each tick is +2%
} }
& "$PSScriptRoot/speak-english.ps1" "Hundred percent now."
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"