mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-17 02:01:01 +01: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
|
||||
------------------------
|
||||
* `Computer, mute audio`
|
||||
* `Computer, unmute audio`
|
||||
* `Computer, turn volume off`
|
||||
* `Computer, turn volume on`
|
||||
* `Computer, turn volume up`
|
||||
* `Computer, turn volume down`
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Mutes the audio output
|
||||
Turns the volume off
|
||||
.DESCRIPTION
|
||||
This script mutes the default audio device immediately.
|
||||
.EXAMPLE
|
||||
PS> ./mute-audio
|
||||
PS> ./turn-volume-off
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
@ -14,7 +14,7 @@
|
||||
try {
|
||||
$obj = new-object -com wscript.shell
|
||||
$obj.SendKeys([char]173)
|
||||
"🔇 audio is muted"
|
||||
& "$PSScriptRoot/give-reply.ps1" "Audio is off."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
@ -1,10 +1,10 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Unmutes the audio output
|
||||
Turns the volume on
|
||||
.DESCRIPTION
|
||||
This script unmutes the audio output.
|
||||
.EXAMPLE
|
||||
PS> .\unmute-audio.ps1
|
||||
PS> .\turn-volume-on.ps1
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
@ -14,7 +14,7 @@
|
||||
try {
|
||||
$obj = new-object -com wscript.shell
|
||||
$obj.SendKeys([char]173)
|
||||
"🔈 audio is unmuted"
|
||||
& "$PSScriptRoot/give-reply.ps1" "Audio is on."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
Loading…
Reference in New Issue
Block a user