mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-26 08:38:51 +01:00
Improve the output
This commit is contained in:
parent
be825c1787
commit
be5d5b88a1
@ -8,7 +8,7 @@
|
|||||||
try {
|
try {
|
||||||
$obj = new-object -com wscript.shell
|
$obj = new-object -com wscript.shell
|
||||||
$obj.SendKeys([char]173)
|
$obj.SendKeys([char]173)
|
||||||
"🔇 audio muted."
|
"🔇 audio is muted"
|
||||||
exit 0
|
exit 0
|
||||||
} catch {
|
} catch {
|
||||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<#
|
<#
|
||||||
.SYNTAX unmute-audio.ps1
|
.SYNTAX unmute-audio.ps1
|
||||||
.DESCRIPTION unmutes audio output
|
.DESCRIPTION unmutes the audio output
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
@ -8,7 +8,7 @@
|
|||||||
try {
|
try {
|
||||||
$obj = new-object -com wscript.shell
|
$obj = new-object -com wscript.shell
|
||||||
$obj.SendKeys([char]173)
|
$obj.SendKeys([char]173)
|
||||||
"🔈 audio unmuted."
|
"🔈 audio is unmuted"
|
||||||
exit 0
|
exit 0
|
||||||
} catch {
|
} catch {
|
||||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
Loading…
Reference in New Issue
Block a user