mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-23 06:08:36 +01: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%
|
||||
}
|
||||
"🔉️ -$($percent)%"
|
||||
& "$PSScriptRoot/speak-english.ps1" "OK, $percent percent less volume"
|
||||
& "$PSScriptRoot/speak-english.ps1" "$percent percent less volume"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
|
@ -21,7 +21,7 @@ try {
|
||||
$obj.SendKeys([char]175) # each tick is +2%
|
||||
}
|
||||
"🔊️ +$($percent)%"
|
||||
& "$PSScriptRoot/speak-english.ps1" "OK, $percent percent louder"
|
||||
& "$PSScriptRoot/speak-english.ps1" "$percent percent louder"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
|
Loading…
Reference in New Issue
Block a user