mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-20 08:58:18 +02:00
Simple rename
This commit is contained in:
parent
7aa7af1028
commit
1289232de8
@ -90,8 +90,8 @@ Lets the computer check something, replace [name] by: `Bitcoin`, `Christmas`, `C
|
|||||||
|
|
||||||
🔊 Audio Voice Commands
|
🔊 Audio Voice Commands
|
||||||
------------------------
|
------------------------
|
||||||
* `Computer, mute audio`
|
* `Computer, turn volume off`
|
||||||
* `Computer, unmute audio`
|
* `Computer, turn volume on`
|
||||||
* `Computer, turn volume up`
|
* `Computer, turn volume up`
|
||||||
* `Computer, turn volume down`
|
* `Computer, turn volume down`
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Mutes the audio output
|
Turns the volume off
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This script mutes the default audio device immediately.
|
This script mutes the default audio device immediately.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./mute-audio
|
PS> ./turn-volume-off
|
||||||
.NOTES
|
.NOTES
|
||||||
Author: Markus Fleschutz · License: CC0
|
Author: Markus Fleschutz · License: CC0
|
||||||
.LINK
|
.LINK
|
||||||
@ -14,7 +14,7 @@
|
|||||||
try {
|
try {
|
||||||
$obj = new-object -com wscript.shell
|
$obj = new-object -com wscript.shell
|
||||||
$obj.SendKeys([char]173)
|
$obj.SendKeys([char]173)
|
||||||
"🔇 audio is muted"
|
& "$PSScriptRoot/give-reply.ps1" "Audio is off."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
@ -1,10 +1,10 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Unmutes the audio output
|
Turns the volume on
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This script unmutes the audio output.
|
This script unmutes the audio output.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> .\unmute-audio.ps1
|
PS> .\turn-volume-on.ps1
|
||||||
.NOTES
|
.NOTES
|
||||||
Author: Markus Fleschutz · License: CC0
|
Author: Markus Fleschutz · License: CC0
|
||||||
.LINK
|
.LINK
|
||||||
@ -14,7 +14,7 @@
|
|||||||
try {
|
try {
|
||||||
$obj = new-object -com wscript.shell
|
$obj = new-object -com wscript.shell
|
||||||
$obj.SendKeys([char]173)
|
$obj.SendKeys([char]173)
|
||||||
"🔈 audio is unmuted"
|
& "$PSScriptRoot/give-reply.ps1" "Audio is on."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
Loading…
Reference in New Issue
Block a user