mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 13:04:59 +02:00
Add unicode character
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/pwsh
|
||||
#!/usr/bin/pwsh
|
||||
<#
|
||||
.SYNTAX turn-volume-down.ps1 [<percent>]
|
||||
.DESCRIPTION turns the audio volume down (-10% by default)
|
||||
@ -13,7 +13,7 @@ try {
|
||||
for ([int]$i = 0; $i -lt $Percent; $i += 2) {
|
||||
$obj.SendKeys([char]174) # each tick is -2%
|
||||
}
|
||||
write-host -foregroundColor green "Done."
|
||||
write-host -foregroundColor green "✔️ turned volume down by $Percent %"
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Reference in New Issue
Block a user