mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-22 16:03:22 +01:00
Update turn-volume-fully-up.ps1
This commit is contained in:
parent
88b854953d
commit
108ab94f5b
@ -1,6 +1,6 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Turns audio volume fully up
|
Turns the volume fully up
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This PowerShell script turns the audio volume fully up to 100%.
|
This PowerShell script turns the audio volume fully up to 100%.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
@ -16,7 +16,6 @@ try {
|
|||||||
for ([int]$i = 0; $i -lt 100; $i += 2) {
|
for ([int]$i = 0; $i -lt 100; $i += 2) {
|
||||||
$obj.SendKeys([char]175) # each tick is +2%
|
$obj.SendKeys([char]175) # each tick is +2%
|
||||||
}
|
}
|
||||||
& "$PSScriptRoot/speak-english.ps1" "Hundred percent now."
|
|
||||||
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