Skip to content

Commit

Permalink
Windows volume fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Juanbanpar committed Mar 6, 2024
1 parent f6fa64f commit b2e6c0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions amor.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ $player.PlayLooping()
# Function to say LOUDLY how much I LOVE YOU
# but increase volume by steps
Function Set-Speaker($Volume) {
Start-Sleep -Seconds 1
$wshShell = new-object -com wscript.shell;1..50 | % {$wshShell.SendKeys([char]174)};1..$Volume | % {$wshShell.SendKeys([char]175)}
$wshShell = new-object -com wscript.shell;1..50 | % {$wshShell.SendKeys([char]174);Start-Sleep -Seconds 1};1..$Volume | % {$wshShell.SendKeys([char]175);Start-Sleep -Seconds 1}
}
Set-Speaker -Volume 50

Expand Down

0 comments on commit b2e6c0d

Please sign in to comment.