Results 1 to 8 of 8

Thread: Windows Master Volume & Media Keys

  1. #1
    Newbie
    Join Date
    Jun 2009
    Posts
    24

    Windows Master Volume & Media Keys

    OK. I would say my CarPC phase 1 installation completed.
    So now I get time to look at the software side of things. While I am waiting for CF3 to come out to see whether it is worthwhile to work on its plugin, I looked at FB this afternoon.

    I am not the only one like to see FB controlling the master volume. I also think it would be nice that FB sends out Multimedia Keys (most media players hook up these keys http://www.codeguru.com/cpp/w-p/syst...icle.php/c5655).

    So I ve done some research and made some sample code (attached).
    What it does is, rather than "control" volume, it sends out virtual keystroke (like what multimedia keyboards do) to Windows. It can be entended to Browser-Keys.

    Hopefully 2k1Toaster will has time to look at it and see whether it is suitable to incorporate this into MDX.
    Attached Files Attached Files

  2. #2
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    Quote Originally Posted by Banegio View Post
    OK. I would say my CarPC phase 1 installation completed.
    So now I get time to look at the software side of things. While I am waiting for CF3 to come out to see whether it is worthwhile to work on its plugin, I looked at FB this afternoon.

    I am not the only one like to see FB controlling the master volume. I also think it would be nice that FB sends out Multimedia Keys (most media players hook up these keys http://www.codeguru.com/cpp/w-p/syst...icle.php/c5655).

    So I ve done some research and made some sample code (attached).
    What it does is, rather than "control" volume, it sends out virtual keystroke (like what multimedia keyboards do) to Windows. It can be entended to Browser-Keys.

    Hopefully 2k1Toaster will has time to look at it and see whether it is suitable to incorporate this into MDX.
    It is included and went out with the update tonight.

    Here is a sample configuration file with just buttons to trigger the multimedia keys: http://www.fusioncontrolcentre.com/T...figuration.xml

    And the contents if you dont want to download:

    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    <FusionControlCentreConfiguration version="3.0" author="Ninja Kitty Wizard of Doom" date_created="Saturday, August 15, 2009 at 10:47:06 PM" last_modified="Saturday, August 15, 2009 at 10:49:32 PM">
    
      <require>
      <!-- Begin Fusion Font Instances -->
          <font name="Verdana" originalSize="25" font_config="content\fonts\Verdana.xml"></font>
      <!-- End Fusion Font Instances -->
      </require>
    
      <graphics>
      <!-- Begin Global Graphic Settings -->
          <main_display designed_for_size="800,600" show_at_size="800,600" menubar="Sizeable" RunInSystemTray="False" MinimizeToSystemTray="True"></main_display>
      <!-- End Global Graphic Settings -->
    
      <!-- Begin Background Images -->
          <background_image style="stretch" imagefilepath="content\images\background_images\background.jpg" page="0"></background_image>
      <!-- End Background Images -->
    
      <!-- Begin Static Images -->
          <staticimage>
            <image path="content\images\static_images\logo.png"></image>
            <display size="556,27" location="123,44" page="0" z_order="0.9"></display>
          </staticimage>
      <!-- End Static Images -->
    
      <!-- Begin Display Buttons -->
          <button id="MMBTN_PLAY_PAUSE" enabled="yes" function="send key" functionTargetID="GLOBAL" vote="filler" vote_opinion="PLAY_PAUSE" vote_priority="Low">
            <images imagePrimary="content\images\button_images\button.png" imageSecondary="content\images\button_images\button.png" imageDisabled="content\images\button_images\button.png" imagePushed="content\images\button_images\button.png"></images>
            <display size="230,70" location="37,119" page="0" z_order="0.9"></display>
            <vote_options minimum_delta_vote_time_down="20" ></vote_options>
            <text font="verdana" font_size="25"></text>
            <text colourPrimaryARGB="255,255,255,255" textPrimary="Play - Pause"></text>
            <text colourSecondaryARGB="255,255,255,255" textSecondary="Play - Pause"></text>
          </button>
          <button id="MMBTN_STOP" enabled="yes" function="send key" functionTargetID="GLOBAL" vote="filler" vote_opinion="STOP" vote_priority="Low">
            <images imagePrimary="content\images\button_images\button.png" imageSecondary="content\images\button_images\button.png" imageDisabled="content\images\button_images\button.png" imagePushed="content\images\button_images\button.png"></images>
            <display size="230,70" location="287,119" page="0" z_order="0.9"></display>
            <vote_options minimum_delta_vote_time_down="20" ></vote_options>
            <text font="verdana" font_size="25"></text>
            <text colourPrimaryARGB="255,255,255,255" textPrimary="Stop"></text>
            <text colourSecondaryARGB="255,255,255,255" textSecondary="Stop"></text>
          </button>
          <button id="MMBTN_PREV" enabled="yes" function="send key" functionTargetID="GLOBAL" vote="filler" vote_opinion="PREV" vote_priority="Low">
            <images imagePrimary="content\images\button_images\button.png" imageSecondary="content\images\button_images\button.png" imageDisabled="content\images\button_images\button.png" imagePushed="content\images\button_images\button.png"></images>
            <display size="230,70" location="537,119" page="0" z_order="0.9"></display>
            <vote_options minimum_delta_vote_time_down="20" ></vote_options>
            <text font="verdana" font_size="25"></text>
            <text colourPrimaryARGB="255,255,255,255" textPrimary="Previous Track"></text>
            <text colourSecondaryARGB="255,255,255,255" textSecondary="Previous Track"></text>
          </button>
          <button id="MMBTN_NEXT" enabled="yes" function="send key" functionTargetID="GLOBAL" vote="filler" vote_opinion="NEXT" vote_priority="Low">
            <images imagePrimary="content\images\button_images\button.png" imageSecondary="content\images\button_images\button.png" imageDisabled="content\images\button_images\button.png" imagePushed="content\images\button_images\button.png"></images>
            <display size="230,70" location="37,219" page="0" z_order="0.9"></display>
            <vote_options minimum_delta_vote_time_down="20" ></vote_options>
            <text font="verdana" font_size="25"></text>
            <text colourPrimaryARGB="255,255,255,255" textPrimary="Next Track"></text>
            <text colourSecondaryARGB="255,255,255,255" textSecondary="Next Track"></text>
          </button>
          <button id="MMBTN_VOL_UP" enabled="yes" function="send key" functionTargetID="GLOBAL" vote="filler" vote_opinion="VOL_UP" vote_priority="Low">
            <images imagePrimary="content\images\button_images\button.png" imageSecondary="content\images\button_images\button.png" imageDisabled="content\images\button_images\button.png" imagePushed="content\images\button_images\button.png"></images>
            <display size="230,70" location="287,219" page="0" z_order="0.9"></display>
            <vote_options minimum_delta_vote_time_down="20" ></vote_options>
            <text font="verdana" font_size="25"></text>
            <text colourPrimaryARGB="255,255,255,255" textPrimary="Vol Up"></text>
            <text colourSecondaryARGB="255,255,255,255" textSecondary="Vol Up"></text>
          </button>
          <button id="MMBTN_VOL_DOWN" enabled="yes" function="send key" functionTargetID="GLOBAL" vote="filler" vote_opinion="VOL_DOWN" vote_priority="Low">
            <images imagePrimary="content\images\button_images\button.png" imageSecondary="content\images\button_images\button.png" imageDisabled="content\images\button_images\button.png" imagePushed="content\images\button_images\button.png"></images>
            <display size="230,70" location="537,219" page="0" z_order="0.9"></display>
            <vote_options minimum_delta_vote_time_down="20" ></vote_options>
            <text font="verdana" font_size="25"></text>
            <text colourPrimaryARGB="255,255,255,255" textPrimary="Vol Down"></text>
            <text colourSecondaryARGB="255,255,255,255" textSecondary="Vol Down"></text>
          </button>
          <button id="MMBTN_MUTE" enabled="yes" function="send key" functionTargetID="GLOBAL" vote="filler" vote_opinion="MUTE" vote_priority="Low">
            <images imagePrimary="content\images\button_images\button.png" imageSecondary="content\images\button_images\button.png" imageDisabled="content\images\button_images\button.png" imagePushed="content\images\button_images\button.png"></images>
            <display size="230,70" location="37,319" page="0" z_order="0.9"></display>
            <vote_options minimum_delta_vote_time_down="20" ></vote_options>
            <text font="verdana" font_size="25"></text>
            <text colourPrimaryARGB="255,255,255,255" textPrimary="Mute"></text>
            <text colourSecondaryARGB="255,255,255,255" textSecondary="Mute"></text>
          </button>
      <!-- End Display Buttons -->
      </graphics>
    </FusionControlCentreConfiguration>
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  3. #3
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    Did it work for you?
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  4. #4
    Newbie
    Join Date
    Jun 2009
    Posts
    24
    Thanks for the quick implementation. I haven't got time to try it yet, will try it tomorrow night and keep you updated.

  5. #5
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    Quote Originally Posted by Banegio View Post
    Thanks for the quick implementation. I haven't got time to try it yet, will try it tomorrow night and keep you updated.
    No problem. Let me know how it goes. It worked for me on my Vista dev machine and on an XP virtual machine.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  6. #6
    Newbie
    Join Date
    Jun 2009
    Posts
    24
    Finally had time to tried it.
    It worked perfectly. Thanks Nick.

    The play and track commands worked with CF2 even in the background. So I can use the same steering control key for all media software without setting up MDX to send key to every media software that I may use.

  7. #7
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    glad it works for you.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  8. #8
    Newbie
    Join Date
    Dec 2008
    Posts
    7
    OMG! My prayers are finally answered after almost 1yr!

    >> http://www.mp3car.com/vbulletin/fb-s...-update-4.html

Similar Threads

  1. Fresh Install on New PC, Rebooting
    By phc in forum StreetDeck
    Replies: 3
    Last Post: 12-23-2007, 09:33 AM
  2. pc reboot on sd startup
    By duanes7 in forum StreetDeck
    Replies: 3
    Last Post: 12-14-2007, 08:55 AM
  3. Software Review: Windows XP Media Center 2005 Edition!
    By nFiniteTuning in forum The Review Palace
    Replies: 180
    Last Post: 05-01-2007, 11:54 AM
  4. Windows XP Media Center 2005 Video
    By n33d45p33d in forum WinNT Based
    Replies: 5
    Last Post: 07-06-2006, 03:09 PM
  5. Global Hot Keys for Windows Media Player?
    By ejasons in forum FrodoPlayer
    Replies: 2
    Last Post: 11-26-2004, 07:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •