Windows Vista Forums

Sound volume
  1. #1


    Jarod Guest

    Sound volume

    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



      My System SpecsSystem Spec

  2. #2


    Marco Shaw [MVP] Guest

    Re: Sound volume

    Jarod wrote:

    > 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
    What are you willing to try? A script could likely be written to
    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

      My System SpecsSystem Spec

  3. #3


    Shay Levi Guest

    Re: Sound volume

    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
    >


      My System SpecsSystem Spec

  4. #4


    Marco Shaw [MVP] Guest

    Re: Sound volume

    Shay Levi wrote:

    > 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])
    AutoIT: http://www.autoitscript.com/

    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

      My System SpecsSystem Spec

  5. #5


    Shay Levi Guest

    Re: Sound volume

    Thanks.

    -----
    Shay Levi
    $cript Fanatic
    http://scriptolog.blogspot.com

    > Shay Levi wrote:
    >

    >> 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])
    > AutoIT: http://www.autoitscript.com/
    >
    > 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
    >


      My System SpecsSystem Spec

  6. #6


    Marco Shaw [MVP] Guest

    Re: Sound volume

    Shay Levi wrote:

    > 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])
    I tried this quickly. Perhaps too quickly...

    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

      My System SpecsSystem Spec

  7. #7


    Shay Levi Guest

    Re: Sound volume

    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:
    >

    >> 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])
    > I tried this quickly. Perhaps too quickly...
    >
    > 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
    >


      My System SpecsSystem Spec

  8. #8


    Andy Schneider Guest

    Re: Sound volume

    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:
    >>

    >>> 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])
    >> I tried this quickly. Perhaps too quickly...
    >>
    >> 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
    >>
    >
    >

      My System SpecsSystem Spec

Sound volume problems?

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