584,837 active members*
5,305 visitors online*
Register for free
Login
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2012
    Posts
    120

    Newbie XBOX controller question (Macros)

    hi out there.
    Hope someone has some guidance on a small problem I am having.
    Installed the Xbox controller and it works great with one exception. I have assigned two macros for the two buttons and when I push the buttons during operation.
    I get a message in Mach3 indicating the macro has been run. But nothing actually happens.
    The macros are VBscript Macros that I know work as I can run them in the editor and they work fine.
    But Mach3 doesn't actually run them. I have copied them into every folder I can think of in case its a path issue. Still no go.
    If I delete the macros Mach still says it ran the macro when I push the button.

    I am lost. Any thoughts.

    cheers and thanks

  2. #2
    Join Date
    Mar 2003
    Posts
    35538
    Exactly what Message is Mach3 giving you? I've never seen any message from Mach3 stating that a macro has run.
    Any macros should be in Mach3\macros\yourprofilename (where yourprofilename is the name of the active profile)

    Perhaps the plugin is telling you the macro has run?
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  3. #3
    Join Date
    Oct 2012
    Posts
    120
    Hey Ger21.
    the Macro does nothing but call a DLL that turns a relay on.
    Declare Function Relay Lib "KMSerial.dll" (ByVal comPort As Integer,ByVal numberRelay As Integer,ByVal command As String) As Boolean


    a = Relay(8,1,"ON")

    the code works if I run it in the VBscript editor but not via the macro button.

    And when I press the button the on the Xbox controller that was configured for the macro the status bar says macro 1 ran.
    but it doesn't.
    I suppose I could add a message box so that I can see if its actually running and simply not turning the relay on.

  4. #4
    Join Date
    Oct 2012
    Posts
    120
    Ok
    I confirmed that the plugin sends the message that the Macro has run.
    but the Macro clearly isn't running. I added a message box to make sure. no go.
    For what ever reason the controller doesn't see the macros despite their location and that they are configured in the plugin.
    So I am basically at a stand still now.

  5. #5
    Join Date
    Oct 2012
    Posts
    120
    Next time I need to make sure that the macros have the prefix M on the file. Silly, seems to work better that way

Similar Threads

  1. Xbox controller install on Mach3
    By zeeway in forum Mach Software (ArtSoft software)
    Replies: 68
    Last Post: 01-19-2020, 02:24 AM
  2. Xbox 360 controller on my Mikini
    By slowtwitch in forum Mikinimech
    Replies: 3
    Last Post: 07-03-2012, 01:25 PM
  3. XBOX 360 Controller
    By riche543 in forum Uncategorised CAD Discussion
    Replies: 0
    Last Post: 10-26-2011, 08:46 AM
  4. Xbox 360 controller
    By CATCH22 in forum Mach Wizards, Macros, & Addons
    Replies: 0
    Last Post: 08-24-2008, 12:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •