mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-25 09:23:12 +01:00
Update turn-volume-on.ps1
This commit is contained in:
parent
4093d2079d
commit
e85b6e594b
@ -14,7 +14,6 @@
|
|||||||
try {
|
try {
|
||||||
$obj = new-object -com wscript.shell
|
$obj = new-object -com wscript.shell
|
||||||
$obj.SendKeys([char]173)
|
$obj.SendKeys([char]173)
|
||||||
& "$PSScriptRoot/speak-english.ps1" "Audio is on."
|
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
Loading…
Reference in New Issue
Block a user