Results 1 to 3 of 3

Thread: MDX and AutoIt with COM

  1. #1
    JiC
    JiC is offline
    Newbie
    Join Date
    Sep 2008
    Posts
    26

    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. #2
    Constant Bitrate stealinfool's Avatar
    Join Date
    Dec 2005
    Location
    Orlando
    Posts
    142
    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>

  3. #3
    JiC
    JiC is offline
    Newbie
    Join Date
    Sep 2008
    Posts
    26
    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)

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
  •