Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 35

Thread: programing in the Uber Edition.

  1. #21
    FLAC
    Join Date
    Oct 2006
    Location
    Las Vegas
    Posts
    1,286
    Quote Originally Posted by customaudioman View Post
    so whats the best way to send key strokes since I use multiple programs, not all at once but close one and open another?
    what about suondman.exe that is running in the tray, which can be used to open "Volume Control" (sndvol32.exe)? I can adjust volume with keys after clicking that.

  2. #22
    FLAC
    Join Date
    Oct 2006
    Location
    Las Vegas
    Posts
    1,286
    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".
    so is this error:

    System.InvalidCastException: Specified cast is not valid.
    at Fusion_Control_Centre_Uber_Edition.MainForm.IfThen Evaluator(XmlNode input, String typeinput)
    at Fusion_Control_Centre_Uber_Edition.MainForm.IfThen Evaluator(XmlNode input, String typeinput)
    at Fusion_Control_Centre_Uber_Edition.MainForm.Perfor mLogicCommands(String which_timer)
    at Fusion_Control_Centre_Uber_Edition.MainForm.LogicT imer_Tick(Object sender, EventArgs e)
    at System.Windows.Forms.Timer.OnTick(EventArgs e)
    at System.Windows.Forms.Timer.TimerNativeWindow.WndPr oc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    because WINDOWTITLE and KEYTOSEND aren't set up yet or is there an issue with X and Y and decimal numbers?

    I'm thinking it's (WINDOWTITLE and KEYTOSEND).

  3. #23
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    It is X and Y with decimal numbers. You notice the "<number></number>" tags around X and Y, so that says this string is parsable into a double. If it is not, it dies. I have error catching off right now so I can see every error and fix it, rather than it just falling to a try/catch and running along. I will of course be protecting it when actually "releasing" it.
    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. #24
    Maximum Bitrate customaudioman's Avatar
    Join Date
    Oct 2005
    Location
    Maryland
    Posts
    659
    Quote Originally Posted by 2k1Toaster View Post
    It is X and Y with decimal numbers. You notice the "<number></number>" tags around X and Y, so that says this string is parsable into a double. If it is not, it dies. I have error catching off right now so I can see every error and fix it, rather than it just falling to a try/catch and running along. I will of course be protecting it when actually "releasing" it.
    so for the x and y I need to write fro example<number>3.55><3.55></number> ?

  5. #25
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Quote Originally Posted by customaudioman View Post
    so for the x and y I need to write fro example<number>3.55><3.55></number> ?
    Sort of.

    The tag "<number>" says "hey program! look out for something that resembles a number". The closing tag "</number>" tells the program "hey, that was a number, and it is done now".

    So the stuff inbetween the program then thinks is a number. If it is "456abc" the program will be confused and currently error. Can you tell me what number "456abc" is?! The program cannot either. It as well as you can tell that "3" is a number and "89.476" is a number and so on.

    So for that line, it will be "<number>4.2</number>" where "4.2" replaces the "X".

    Does that make more sense?
    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. #26
    Maximum Bitrate customaudioman's Avatar
    Join Date
    Oct 2005
    Location
    Maryland
    Posts
    659
    Quote Originally Posted by 2k1Toaster View Post
    Ok, if the captio is constant, that is good and this should work. If the caption is "BLAH" then your window title string will be "BLAH::".

    You cannot send keystrokes to a sound device... If it has a sound manager that runs in the system tray or something, then you can send to that, but you are back to needing the title and/or class name.

    Let me know if you have the correct title, and I will permanently code it into the program to help further people.

    Oh, and it is case sensitive.
    what is ''captio'' ? so if streetdeck title say '' streetdeck'' can I use that? Like I said before the class changes every time I open and close the program. the streetdeck window is always the same in the program. I found the title/and class for the soundblaster.

  7. #27
    Maximum Bitrate customaudioman's Avatar
    Join Date
    Oct 2005
    Location
    Maryland
    Posts
    659
    Quote Originally Posted by 2k1Toaster View Post
    Sort of.

    The tag "<number>" says "hey program! look out for something that resembles a number". The closing tag "</number>" tells the program "hey, that was a number, and it is done now".

    So the stuff inbetween the program then thinks is a number. If it is "456abc" the program will be confused and currently error. Can you tell me what number "456abc" is?! The program cannot either. It as well as you can tell that "3" is a number and "89.476" is a number and so on.

    So for that line, it will be "<number>4.2</number>" where "4.2" replaces the "X".

    Does that make more sense?
    yes, I have already done that in the ''if'' part of the xml file replacing the x,y for each button with the numbers. ''number>3.50</number>''

  8. #28
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Quote Originally Posted by customaudioman View Post
    what is ''captio'' ? so if streetdeck title say '' streetdeck'' can I use that? Like I said before the class changes every time I open and close the program. the streetdeck window is always the same in the program. I found the title/and class for the soundblaster.
    "captio" is a typo for "caption" which means the window title as seen by Windows OS.

    If the title bar for streetdeck says "streetdeck" then yes that should work. Reason I say should is because there are also things called "child windows". Best way I can explain child windows is by relating it to Microsoft Word or Adobe Photoshop. You can open many documents, all contained in the big window. So for photoshop, you can open "image1.jpg" and "image2.jpg" at the same time. These images will move with the main photoshop window. You can resize, minimize, and maximize the "image1.jpg" and "image2.jpg" windows all within the main "photoshop" window. If you minimize photoshop, those child windows "image1.jpg" and "image2.jpg" will be minimized as well. That is because their parent is photoshop, and photoshop's children (child windows) are those image windows.

    So in streetdeck, it seems as if there is only 1 window. But I do not know for sure, as I again do not use Streetdeck. But from my understanding of the program, it should work.

    Also if the title is "Streetdeck" instead of "streetdeck" it does make a difference (case sensitive).
    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. #29
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Quote Originally Posted by customaudioman View Post
    yes, I have already done that in the ''if'' part of the xml file replacing the x,y for each button with the numbers. ''number>3.50</number>''
    Just making sure you have just "<number>3.50</number>" and not "<number><number>3.50</number></number>".

    "X" should only be replaced by "3.50", so the whole thing includeds the number tag. I am just making sure.


    Also, I have been doing some more digging, and you do need the DX framework installed. There are "optional" items that are not always automatically installed when a program like World of Warcraft" or "StreetDeck" are installed. XNA requires a few of those optional items. So when you install the framework, those options are installed.
    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

  10. #30
    Maximum Bitrate customaudioman's Avatar
    Join Date
    Oct 2005
    Location
    Maryland
    Posts
    659
    Quote Originally Posted by 2k1Toaster View Post
    Just making sure you have just "<number>3.50</number>" and not "<number><number>3.50</number></number>".

    "X" should only be replaced by "3.50", so the whole thing includeds the number tag. I am just making sure.


    Also, I have been doing some more digging, and you do need the DX framework installed. There are "optional" items that are not always automatically installed when a program like World of Warcraft" or "StreetDeck" are installed. XNA requires a few of those optional items. So when you install the framework, those options are installed.
    yes I have it the way you have written it above: "<number>3.50</number>"
    I have .net framework 2.0, directx sdk(november2007) , xna framework redistributable 2.0 and is there anything else I need?

Page 3 of 4 FirstFirst 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
  •