| Main > Software Forum |
| command line volume adjust? |
| << < (2/2) |
| papaschtroumpf:
Look in the auohotkey help file, there is a mute command |
| BobbyG66:
Thanks, I am a former Autoit user. Will check it out! |
| headkaze:
--- Quote from: papaschtroumpf on October 11, 2005, 05:17:54 pm ---Is there a command line utility that I could use to set the current master volume of your sound card to a particular level? I could then launch the PC game from a batch file that sets the volume lower before launching the game, then restores it. Ideally you would be able to query the initial volume so you don't have to hardcode anything. --- End quote --- I liked your idea so I wrote a little program to do that. It's written so you can launch before and after a game to store/restore volume settings. You run "volume -read" before the game to store current volume, launch the game and then manually set the volume the way you want, exit the game then run "volume -write" to write the game volume settings and restore volume back to original. Now when you run the game again it will set the volume to your manual setting. I havn't properly tested it yet so if you have any problems, just post here. It can also store/retrieve volumes for multiple games, just use the "-file <filename>" switch with both the -read and -write switches and it will read/write a volume dat file for that game. You could use a batch file... --- Code: ---@echo off volume.exe -read -file mygame.dat mygame.exe volume.exe -write -file mygame.dat --- End code --- You only have to manually set the volume once during the game, then it will remember forever. You can always change it again during the game and it will store the new volume. Volume v1.0 |
| Navigation |
| Message Index |
| Previous page |