Announcement

Collapse
No announcement yet.

Windows Master Volume & Media Keys

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    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

    Comment


    • #3
      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

      Comment


      • #4
        Thanks for the quick implementation. I haven't got time to try it yet, will try it tomorrow night and keep you updated.

        Comment


        • #5
          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

          Comment


          • #6
            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.

            Comment


            • #7
              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

              Comment


              • #8
                OMG! My prayers are finally answered after almost 1yr!

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

                Comment

                Working...
                X