Hey
How to change sound volume using powershell?
There are some programs that are storing theirs volume levels and therefore
are changing my settings. I'd like to write simple script that will change it
back for me.
Yedrzey
Hey
How to change sound volume using powershell?
There are some programs that are storing theirs volume levels and therefore
are changing my settings. I'd like to write simple script that will change it
back for me.
Yedrzey
Jarod wrote:What are you willing to try? A script could likely be written to
> Hey
>
> How to change sound volume using powershell?
> There are some programs that are storing theirs volume levels and therefore
> are changing my settings. I'd like to write simple script that will change it
> back for me.
>
> Yedrzey
automate the mouse clicks required to get this done.
Alternatively, it appears this is *not* easy at all to do:
http://blogs.msdn.com/larryosterman/...ows-vista.aspx
That's Vista... Apparently it is even harder in XP.
Marco
--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp
PowerGadgets MVP
http://www.powergadgets.com/mvp
Blog:
http://marcoshaw.blogspot.com
You can do it with AutoIT. Create a file with the following code and compile
it to exe. Then just call it with one
parameter, the volume by percent (e.g., 'SoundSetWaveVolume.exe 50'):
#SoundSetWaveVolume.au3
#Sets the system wave volume by percent.
SoundSetWaveVolume($CmdLine[1])
-----
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
> Hey
>
> How to change sound volume using powershell? There are some programs
> that are storing theirs volume levels and therefore are changing my
> settings. I'd like to write simple script that will change it back for
> me.
>
> Yedrzey
>
Shay Levi wrote:AutoIT: http://www.autoitscript.com/
> You can do it with AutoIT. Create a file with the following code and
> compile it to exe. Then just call it with one parameter, the volume by
> percent (e.g., 'SoundSetWaveVolume.exe 50'):
>
> #SoundSetWaveVolume.au3
> #Sets the system wave volume by percent. SoundSetWaveVolume($CmdLine[1])
Interesting... BTW, once you install AutoIT, that file is in:
C:\Program Files\AutoIt3\Examples\Helpfile
Also, once installed, you have a menu pick to compile the script to an exe.
Marco
Thanks.
-----
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
> Shay Levi wrote:
>> AutoIT: http://www.autoitscript.com/
>> You can do it with AutoIT. Create a file with the following code and
>> compile it to exe. Then just call it with one parameter, the volume
>> by percent (e.g., 'SoundSetWaveVolume.exe 50'):
>>
>> #SoundSetWaveVolume.au3
>> #Sets the system wave volume by percent.
>> SoundSetWaveVolume($CmdLine[1])
>
> Interesting... BTW, once you install AutoIT, that file is in:
> C:\Program Files\AutoIt3\Examples\Helpfile
>
> Also, once installed, you have a menu pick to compile the script to an
> exe.
>
> Marco
>
Shay Levi wrote:I tried this quickly. Perhaps too quickly...
> You can do it with AutoIT. Create a file with the following code and
> compile it to exe. Then just call it with one parameter, the volume by
> percent (e.g., 'SoundSetWaveVolume.exe 50'):
>
> #SoundSetWaveVolume.au3
> #Sets the system wave volume by percent. SoundSetWaveVolume($CmdLine[1])
It isn't working on XP SP2, and furthermore, this isn't for the master
volume (besides that's what the name of the script says anyways).
Marco
It is working on my XP SP2 though the volume slider doesn't update its levels.
Play some song in the background and give it another try.
-----
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
> Shay Levi wrote:
>> I tried this quickly. Perhaps too quickly...
>> You can do it with AutoIT. Create a file with the following code and
>> compile it to exe. Then just call it with one parameter, the volume
>> by percent (e.g., 'SoundSetWaveVolume.exe 50'):
>>
>> #SoundSetWaveVolume.au3
>> #Sets the system wave volume by percent.
>> SoundSetWaveVolume($CmdLine[1])
>
> It isn't working on XP SP2, and furthermore, this isn't for the master
> volume (besides that's what the name of the script says anyways).
>
> Marco
>
One of the tricky things with Vista is that there is a volume level and
settings for each program that is running.
Andy Schneider
http://www.get-powershell.com
"Shay Levi" <no@xxxxxx> wrote in message
news:8766a9441ed668ca3baae09c9214@xxxxxx
> It is working on my XP SP2 though the volume slider doesn't update its
> levels.
> Play some song in the background and give it another try.
>
>
> -----
> Shay Levi
> $cript Fanatic
> http://scriptolog.blogspot.com
>>
>> Shay Levi wrote:
>>>> I tried this quickly. Perhaps too quickly...
>>> You can do it with AutoIT. Create a file with the following code and
>>> compile it to exe. Then just call it with one parameter, the volume
>>> by percent (e.g., 'SoundSetWaveVolume.exe 50'):
>>>
>>> #SoundSetWaveVolume.au3
>>> #Sets the system wave volume by percent.
>>> SoundSetWaveVolume($CmdLine[1])
>>
>> It isn't working on XP SP2, and furthermore, this isn't for the master
>> volume (besides that's what the name of the script says anyways).
>>
>> Marco
>>
>
| Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sound volume decreases. | Geordie | Vista General | 4 | 15 Feb 2010 |
| Line-in to sound card - no sound, no volume display | JRW | Vista hardware & devices | 4 | 10 May 2009 |
| Sound Recorder Volume | borenbai | Sound & Audio | 2 | 11 Apr 2009 |
| Sound Volume | Kevin | Vista music pictures video | 1 | 26 Oct 2006 |
| Sound volume adjustments | terrigenous | Vista hardware & devices | 0 | 01 Oct 2006 |