Update turn-volume-up.ps1

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

View File

@ -20,7 +20,6 @@ try {
for ([int]$i = 0; $i -lt $percent; $i += 2) { for ([int]$i = 0; $i -lt $percent; $i += 2) {
$obj.SendKeys([char]175) # each tick is +2% $obj.SendKeys([char]175) # each tick is +2%
} }
& "$PSScriptRoot/speak-english.ps1" "$($percent)% louder."
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"