mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-21 09:28:21 +02:00
Update turn-volume-up.ps1 and turn-volume-down.ps1
This commit is contained in:
parent
352afcc3c4
commit
1c024ffb7c
@ -21,7 +21,7 @@ try {
|
|||||||
$obj.SendKeys([char]174) # each tick is -2%
|
$obj.SendKeys([char]174) # each tick is -2%
|
||||||
}
|
}
|
||||||
"🔉️ -$($percent)%"
|
"🔉️ -$($percent)%"
|
||||||
& "$PSScriptRoot/speak-english.ps1" "OK, $percent percent less volume"
|
& "$PSScriptRoot/speak-english.ps1" "$percent percent less volume"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||||
|
@ -21,7 +21,7 @@ try {
|
|||||||
$obj.SendKeys([char]175) # each tick is +2%
|
$obj.SendKeys([char]175) # each tick is +2%
|
||||||
}
|
}
|
||||||
"🔊️ +$($percent)%"
|
"🔊️ +$($percent)%"
|
||||||
& "$PSScriptRoot/speak-english.ps1" "OK, $percent percent louder"
|
& "$PSScriptRoot/speak-english.ps1" "$percent percent louder"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||||
|
Loading…
Reference in New Issue
Block a user