mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-22 07:53:21 +01:00
Update turn-volume-down.ps1
This commit is contained in:
parent
9189305c29
commit
c5f99f228b
@ -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]174) # each tick is -2%
|
$obj.SendKeys([char]174) # each tick is -2%
|
||||||
}
|
}
|
||||||
& "$PSScriptRoot/speak-english.ps1" "$($percent)% softer."
|
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
Loading…
Reference in New Issue
Block a user