Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Function Set_Audio ($volume){
- If(-not([bool]!($Volume%2))){$Volume = $volume + 1}
- $volume = $volume / 2
- $wshShell = new-object -com wscript.shell;1..50 | % {$wshShell.SendKeys([char]174)};1..$Volume | % {$wshShell.SendKeys([char]175)}
- $wshShell.SendKeys([char]173)
- }
- # Use like this.
- Set_Audio -Volume 100
- Set_Audio -Volume 50
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement