Page 1 of 4 1234 LastLast
Results 1 to 10 of 35

Thread: programing in the Uber Edition.

  1. #1
    Maximum Bitrate customaudioman's Avatar
    Join Date
    Oct 2005
    Location
    Maryland
    Posts
    659

    programing in the Uber Edition.

    I need to know how to set the control buttons on the steering wheel to work with the Uber Edition. when I open the uber file, do I go to config or fusion configuration to set up the controls? do I have to build a skin, or can I use the current one that comes with the program? I only have note pad not xml, can you still open in word. since I know all the values for each button, I just need to know how to program the whole thing, basically how to write it out to do the simple tasks.

  2. #2
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Open up "FusionConfiguration.xml". You can open it in almost any program. Notepad will work, but you wont get any of the cool XML formatting and error checking options. If you miss a quote mark ( " ) the entire XML will error out. Miss required whitespace, the whole XML will error out. Miss an opening or closing tag symbol (> or <) and the whole XML file will error out.

    So I suggest you use a proper XML editing program unless you know what you are doing.

    I think even Office products open xml files now, and there are a ton of programs free to downoad that will work too.

    Basically setup an analogue input in the`"io" section. Then a simple "if greater than x and less than y then do z" is like this:

    Code:
          <if fire_on="logic">
            <parameter1>
              <if>
                <parameter1>
                  <analogue id="Steering Wheel Buttons" time="0"></analogue>
                </parameter1>
                <test check="greater than or equal to"></test>
                <parameter2>
                  <number>X</number>
                </parameter2>
              </if>
            </parameter1>
            <test check="AND"></test>
            <parameter2>
              <if>
                <parameter1>
                  <analogue id="Steering Wheel Buttons" time="0"></analogue>
                </parameter1>
                <test check="less than or equal to"></test>
                <parameter2>
                  <number>Y</number>
                </parameter2>
              </if>
            </parameter2>
            <then>
              <do function="send key" functionTargetID="WINDOWTITLE" vote_opinion="KEYTOSEND" vote_priority="medium"></do>
            </then>
          </if>
    obviously you have to replace X, Y, and then the WINDOWTITLE and KEYTOSEND with actual values. If you are using Winamp/RoadRunner, then just put "winamp" in for the window title and it will automatically fill that in. Otherwise, you will need the window title and/or class name of the program. The syntax is "TITLE::CLASS" but if there is a subtitle and subclass, then it is "TITLE::CLASS::SUBTITLE::SUBCLASS".
    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
    Maximum Bitrate customaudioman's Avatar
    Join Date
    Oct 2005
    Location
    Maryland
    Posts
    659
    Quote Originally Posted by 2k1Toaster View Post
    Open up "FusionConfiguration.xml". You can open it in almost any program. Notepad will work, but you wont get any of the cool XML formatting and error checking options. If you miss a quote mark ( " ) the entire XML will error out. Miss required whitespace, the whole XML will error out. Miss an opening or closing tag symbol (> or <) and the whole XML file will error out.

    So I suggest you use a proper XML editing program unless you know what you are doing.

    I think even Office products open xml files now, and there are a ton of programs free to downoad that will work too.

    Basically setup an analogue input in the`"io" section. Then a simple "if greater than x and less than y then do z" is like this:

    Code:
          <if fire_on="logic">
            <parameter1>
              <if>
                <parameter1>
                  <analogue id="Steering Wheel Buttons" time="0"></analogue>
                </parameter1>
                <test check="greater than or equal to"></test>
                <parameter2>
                  <number>X</number>
                </parameter2>
              </if>
            </parameter1>
            <test check="AND"></test>
            <parameter2>
              <if>
                <parameter1>
                  <analogue id="Steering Wheel Buttons" time="0"></analogue>
                </parameter1>
                <test check="less than or equal to"></test>
                <parameter2>
                  <number>Y</number>
                </parameter2>
              </if>
            </parameter2>
            <then>
              <do function="send key" functionTargetID="WINDOWTITLE" vote_opinion="KEYTOSEND" vote_priority="medium"></do>
            </then>
          </if>
    obviously you have to replace X, Y, and then the WINDOWTITLE and KEYTOSEND with actual values. If you are using Winamp/RoadRunner, then just put "winamp" in for the window title and it will automatically fill that in. Otherwise, you will need the window title and/or class name of the program. The syntax is "TITLE::CLASS" but if there is a subtitle and subclass, then it is "TITLE::CLASS::SUBTITLE::SUBCLASS".
    what are some of the free xml programs online to download that will work?
    how would I write the values ou tfor steering wheel buttons? the mode button value is 3.39v, volume up 1.08v,volume down 0.37v, chan foward 2.66v, and chan back is 1.82v.all these values are for the resistive wire hook up to the fusionbrain. can you write this out for me like the example on top of page? I didnt know when buying this fusion brain that I was going to have to code every little control that I could have got with a keyboard or steering wheel control unit.It seems to me like a lot of work, for very simple
    controls. Im not good at this coding thing, so when you explain this stuff, I just dont get coding. also I want these use in streetdeck and windows media player

  4. #4
    FLAC
    Join Date
    Oct 2006
    Location
    Las Vegas
    Posts
    1,286
    Quote Originally Posted by customaudioman View Post
    what are some of the free xml programs online to download that will work?
    XML Marker looks like it will do the job pretty well.
    http://www.download.com/XML-Marker/3...html?tag=lst-2

  5. #5
    Maximum Bitrate customaudioman's Avatar
    Join Date
    Oct 2005
    Location
    Maryland
    Posts
    659
    Quote Originally Posted by h3rk View Post
    XML Marker looks like it will do the job pretty well.
    http://www.download.com/XML-Marker/3...html?tag=lst-2
    thanks

  6. #6
    Maximum Bitrate customaudioman's Avatar
    Join Date
    Oct 2005
    Location
    Maryland
    Posts
    659
    Quote Originally Posted by 2k1Toaster View Post
    Open up "FusionConfiguration.xml". You can open it in almost any program. Notepad will work, but you wont get any of the cool XML formatting and error checking options. If you miss a quote mark ( " ) the entire XML will error out. Miss required whitespace, the whole XML will error out. Miss an opening or closing tag symbol (> or <) and the whole XML file will error out.

    So I suggest you use a proper XML editing program unless you know what you are doing.

    I think even Office products open xml files now, and there are a ton of programs free to downoad that will work too.

    Basically setup an analogue input in the`"io" section. Then a simple "if greater than x and less than y then do z" is like this:

    Code:
          <if fire_on="logic">
            <parameter1>
              <if>
                <parameter1>
                  <analogue id="Steering Wheel Buttons" time="0"></analogue>
                </parameter1>
                <test check="greater than or equal to"></test>
                <parameter2>
                  <number>X</number>
                </parameter2>
              </if>
            </parameter1>
            <test check="AND"></test>
            <parameter2>
              <if>
                <parameter1>
                  <analogue id="Steering Wheel Buttons" time="0"></analogue>
                </parameter1>
                <test check="less than or equal to"></test>
                <parameter2>
                  <number>Y</number>
                </parameter2>
              </if>
            </parameter2>
            <then>
              <do function="send key" functionTargetID="WINDOWTITLE" vote_opinion="KEYTOSEND" vote_priority="medium"></do>
            </then>
          </if>
    obviously you have to replace X, Y, and then the WINDOWTITLE and KEYTOSEND with actual values. If you are using Winamp/RoadRunner, then just put "winamp" in for the window title and it will automatically fill that in. Otherwise, you will need the window title and/or class name of the program. The syntax is "TITLE::CLASS" but if there is a subtitle and subclass, then it is "TITLE::CLASS::SUBTITLE::SUBCLASS".
    are you able to show me what it would look like with my vales from above?

  7. #7
    Maximum Bitrate customaudioman's Avatar
    Join Date
    Oct 2005
    Location
    Maryland
    Posts
    659
    Quote Originally Posted by 2k1Toaster View Post
    Open up "FusionConfiguration.xml". You can open it in almost any program. Notepad will work, but you wont get any of the cool XML formatting and error checking options. If you miss a quote mark ( " ) the entire XML will error out. Miss required whitespace, the whole XML will error out. Miss an opening or closing tag symbol (> or <) and the whole XML file will error out.

    So I suggest you use a proper XML editing program unless you know what you are doing.

    I think even Office products open xml files now, and there are a ton of programs free to downoad that will work too.

    Basically setup an analogue input in the`"io" section. Then a simple "if greater than x and less than y then do z" is like this:

    Code:
          <if fire_on="logic">
            <parameter1>
              <if>
                <parameter1>
                  <analogue id="Steering Wheel Buttons" time="0"></analogue>
                </parameter1>
                <test check="greater than or equal to"></test>
                <parameter2>
                  <number>X</number>
                </parameter2>
              </if>
            </parameter1>
            <test check="AND"></test>
            <parameter2>
              <if>
                <parameter1>
                  <analogue id="Steering Wheel Buttons" time="0"></analogue>
                </parameter1>
                <test check="less than or equal to"></test>
                <parameter2>
                  <number>Y</number>
                </parameter2>
              </if>
            </parameter2>
            <then>
              <do function="send key" functionTargetID="WINDOWTITLE" vote_opinion="KEYTOSEND" vote_priority="medium"></do>
            </then>
          </if>
    obviously you have to replace X, Y, and then the WINDOWTITLE and KEYTOSEND with actual values. If you are using Winamp/RoadRunner, then just put "winamp" in for the window title and it will automatically fill that in. Otherwise, you will need the window title and/or class name of the program. The syntax is "TITLE::CLASS" but if there is a subtitle and subclass, then it is "TITLE::CLASS::SUBTITLE::SUBCLASS".
    replace x, y with what? what about streetdeck, would I just fill in windows media player for window title?

  8. #8
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    x and y are the histeresis settings. You could make it only half of that code, but then it would only send the volume up press when it is equal to the value 3.39v. Well it may be 3.39 volts once, but it might be 3.389v a second time. So you make a range. Hence why it says "greater than or equal to" and "less than or equal to".

    So the lowest value that you have recorded minus a bit for good measure would be the lesser than value (Y above) and the highest value you recorded plus a bit for good measure would be greater than value (X above).

    As for window title, I have no idea. I dont have Streetdeck, I dont use Streetdeck, I have no idea.

    I dont know if StreetDeck opens WMP and sends instructions to it that way, or if it uses the WMP dll and doesnt actually open WMP.

    If it opens WMP, then send to WMP directly. I know the class name for WMP is "WMPlayerApp" so the functionTargetID would be "::WMPlayerApp". If SD doesnt open WMP, then you need to find the class name of StreetDeck. There is a program called Spy++ that I use to find window names and such. I am sure a quick email/PM to one of the SD team will tell you, or just run the program and use something like Spy++ to see the details.

    The vote_opinion is the keypress to do whatever. What button do you press for that function? If you press "D" on your keyboard and it plays Jingle Bells, then put "D" in for vote_opinion and when the above requirements are met, then Jingle Bells will play.
    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

  9. #9
    FLAC
    Join Date
    Oct 2006
    Location
    Las Vegas
    Posts
    1,286
    This code looks at the analog input. Youd define the analog input in the <io> section, below the timers. In the example skin file the part you look for is this:

    Code:
    <iochannel id="Outside Temp" port="0" brain="MainBrain" type="analogue_input">
          <options history="100" auto_average="true"></options>
    make a new one of those, replacing "Outside Temp" with "Steering Wheel Buttons"


    then the code 2k1Toaster wrote goes in the section <all statements>.

    So for Mode=3.39, X is a value above 3.39 and Y is a value below 3.39, because analogs can drift a little, you should choose a value for x and y that give 3.39 a little wiggle room.

  10. #10
    Maximum Bitrate customaudioman's Avatar
    Join Date
    Oct 2005
    Location
    Maryland
    Posts
    659
    Quote Originally Posted by 2k1Toaster View Post
    Open up "FusionConfiguration.xml". You can open it in almost any program. Notepad will work, but you wont get any of the cool XML formatting and error checking options. If you miss a quote mark ( " ) the entire XML will error out. Miss required whitespace, the whole XML will error out. Miss an opening or closing tag symbol (> or <) and the whole XML file will error out.

    So I suggest you use a proper XML editing program unless you know what you are doing.

    I think even Office products open xml files now, and there are a ton of programs free to downoad that will work too.

    Basically setup an analogue input in the`"io" section. Then a simple "if greater than x and less than y then do z" is like this:

    Code:
          <if fire_on="logic">
            <parameter1>
              <if>
                <parameter1>
                  <analogue id="Steering Wheel Buttons" time="0"></analogue>
                </parameter1>
                <test check="greater than or equal to"></test>
                <parameter2>
                  <number>X</number>
                </parameter2>
              </if>
            </parameter1>
            <test check="AND"></test>
            <parameter2>
              <if>
                <parameter1>
                  <analogue id="Steering Wheel Buttons" time="0"></analogue>
                </parameter1>
                <test check="less than or equal to"></test>
                <parameter2>
                  <number>Y</number>
                </parameter2>
              </if>
            </parameter2>
            <then>
              <do function="send key" functionTargetID="WINDOWTITLE" vote_opinion="KEYTOSEND" vote_priority="medium"></do>
            </then>
          </if>
    obviously you have to replace X, Y, and then the WINDOWTITLE and KEYTOSEND with actual values. If you are using Winamp/RoadRunner, then just put "winamp" in for the window title and it will automatically fill that in. Otherwise, you will need the window title and/or class name of the program. The syntax is "TITLE::CLASS" but if there is a subtitle and subclass, then it is "TITLE::CLASS::SUBTITLE::SUBCLASS".
    I completed most of what you said I need. just questions about: <then>
    <do function="send key" functionTargetID="WINDOWTITLE" vote_opinion="KEYTOSEND" vote_priority="medium"></do>
    </then>
    so do I type in windows media player/streetdeck where ever it say '' windowtitle''?

Page 1 of 4 1234 LastLast

Similar Threads

  1. Fusion Control Centre Uber Edition -- Need Testers
    By 2k1Toaster in forum FB Software
    Replies: 312
    Last Post: 06-12-2008, 03:29 PM
  2. XP Stripped to the Bone Edition
    By 65coupei6 in forum Operating System Optimization
    Replies: 1
    Last Post: 10-06-2006, 01:17 AM
  3. Replies: 1
    Last Post: 12-03-2005, 08:58 PM
  4. nLite Windows Media Edition
    By IntellaWorks in forum WinNT Based
    Replies: 3
    Last Post: 03-16-2005, 03:26 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
  •