Quantcast Vaio SR - Control volume with mode buttons

Closed Thread
Results 1 to 2 of 2
  1. #1
    Notebook Deity
    Join Date
    Mar 2008
    Location
    USA
    Posts
    898
    Rep Power
    19

    Default Vaio SR - Control volume with mode buttons

    How to program your Vaio SR mode buttons to control volume.

    The buttons can be programmed to control volume up, down and mute, in addition to the normal launch programs and media functions. Click on the "setting" button (which launches Vaio Mode switch utility) and then double click on a buttons icon. You can select one of the preset items or manually select a program. We will use custom programs.

    To control volume we need to make 2 small VBScript files. One for Volume up and one for Volume down. You can also make one for mute, but since there is already a "preset" for mute we will use that.

    1. Open Notepad and copy the following code, then save each file with a .vbs extension:

    Volume up:
    Code:
    Set WshShell = CreateObject("WScript.Shell")
    
    WshShell.SendKeys(chr(175))
    Save this file as: volumeup.vbs


    Volume down:

    Code:
    Set WshShell = CreateObject("WScript.Shell")
    
    WshShell.SendKeys(chr(174))
    Save this file as: volumedown.vbs


    After saving the files you can test them out by clicking on each of them.

    You'll probably want to change the icon for each of these files so they look nice on the Vaio mode overlay. To do this create a shortcut for each file and right click on the shortcut then select properties > shortcut > change icon. you should see a bunch of icons to choose from, if not then browse to windows\system32\SHELL32.dll
    I choose the up and down arrows located next to the Internet Explorer "e". (note: I'm using Vista. Available Icons in other windows versions may be different)
    After you save your custom icons, take your 2 .vbs files and 2 shortcut files and put them in a new folder. I named my folder "sony volume".
    Now put this folder in your root c:/ drive. eg: c:/sony volume
    putting it in root will make it easier to work with later.

    - Now press your mode "Setting" button to launch Vaio mode switch utility.
    Double click on the button you want to change for Volume up. (I choose middle button).
    - Go to the "Explorer" tab at the top and expand "C:" drive and expand the new "sony volume" folder and select the "volumedown.lnk"
    - Repeat for Volume up.
    - For mute, I just used the Mute preset under "Recommended Functions" tab.
    - click "OK" to save and exit Vaio mode switch utility.

    Now that your done you should have a nice looking mode overlay like this:



    There are a couple limitation to using this. As far as I know you need to have Vaio mode switch utility installed and running. Also you can not hold the button down. You have to repeatedly press the button to change volume, and you can not repeatedly press the button too fast.

    You can also change the number in your .vbs code to do other things. For a full list of codes see this website:
    http://www.rolbe.com/2009/03/03/vb-keycode-chart/


    If you like this give rep :)

    Last edited by S.Prime; 7th January 2010 at 02:15 PM.
    Sony Vaio SR290 CTO 13.3" with Samsung 830 SSD upgrade ~ [ Linux Mint 16 x64 | Windows 7 x64 ]

  2. #2
    Newbie
    Join Date
    Mar 2010
    Posts
    1
    Rep Power
    0

    Default Re: Vaio SR - Control volume with mode buttons

    Hey! I've registered to this forum just to say thanks for this post! The volume UP awesomely works like a charm... but the vol down... I just don't know why does not.
    I've googled for some answers, and all I find is that the 174 code should really work as the volume down.
    I'm using Windows 7 Home Premium 64bit on a VAIO VGN-SR430J.

    Any ideas from anybody?

    Thanks,
    Alan

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -4. The time now is 09:58 AM.
Powered by vBulletin® Version 4.2.2
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
SEO by vBSEO 3.6.1