Add unicode character

This commit is contained in:
Markus Fleschutz
2021-04-16 20:01:38 +02:00
parent ef5367ed53
commit 52d81a2bed
18 changed files with 50 additions and 81 deletions

View File

@ -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])"