Announcement

Collapse
No announcement yet.

MDX and AutoIt with COM

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

  • MDX and AutoIt with COM

    Just upgraded to the new version of MDX with COM support. Awesome! Got Steering wheel controls working great with RR.

    Now question #2, how do I control Fusion Brain from AutoIt using COM?
    I'm guessing something like this:

    Code:
    $FB = ObjGet("","FusionCOM.FusionServer")
    $FB.usboff
    And in the Fusion Config
    Code:
      <com status="enabled">
        <commands>
          <command id="usboff" minimum_delta_vote_time="100">
            <do function="trigger output" functionTargetID="Digital Output 0" vote_opinion="off" vote_priority="medium"></do>
          </command>
        </commands>
    ...etc
    But of course it's not that simple. Anyone have any ideas?

  • #2
    You shouldn't have logic (do_function) in the commands section.


    Whatever your AutoIt COM name is:
    Code:
    <com status="enabled">
          <executable_commands>
            <external_COM_id id="INSERT YOUR COME HERE">
    Then your command and parameter (what AutoIt is being told by MDX)
    Code:
    <command internal_id="command_xx" external_command="xx">
                <parameter order="0" external_command_parameter="xx" />
              </command>
    You're have to find those values out an insert accordingly.

    Then for the logic
    Code:
    <do function="external command" functionTargetID="command_xx" vote_opinion="xx" vote_priority="Medium"></do>
    DON'T PANIC.

    Previous install pics in 2k3 S10

    Project CarPc V2

    Comment


    • #3
      stealin what you are describing is how you'd send commands to AutoIt FROM MDX. I'm talking about doing the reverse.

      In that case you CAN have logic like do function in the commands section.

      This whole thread is moot now. I was trying to do this as a workaround since I couldn't find a way to get RR to send commands successfully, but that has been resolved (See this thread)

      Comment

      Working...
      X