Hello Guest it is November 16, 2019, 07:29:27 PM

Author Topic: runfile not working from macro  (Read 2210 times)

0 Members and 1 Guest are viewing this topic.

Offline Pich

*
  •  11 11
    • View Profile
runfile not working from macro
« on: December 09, 2009, 12:00:53 PM »
Hi Everyone
I've looked around the forum for an answer but no luck.
I'm running this macro from a an LED button

LoadFile ("c:/mach3/work/patter")
sleep 1000
runfile

When I run the macro within the VB window using the play button it loads and stats the file no problem but when a run it from the LED to start the macro, the macro strts loads the file but does not run.  The only thing I noticed different was that the within the VB window the macro starts on the trailing edge of the button pressed and on the leading edge when using the LED.
Thanks
John

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: runfile not working from macro
« Reply #1 on: December 09, 2009, 03:04:49 PM »
What are you meaning by a LED button?
I have just tried it in a VB Button and it works fine.
Hood

Offline Pich

*
  •  11 11
    • View Profile
Re: runfile not working from macro
« Reply #2 on: December 09, 2009, 06:58:59 PM »
It works fine on the VB button, I am using Mach MAD to start the macros when I do that it will load but not run

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: runfile not working from macro
« Reply #3 on: December 10, 2009, 02:18:14 AM »
Ah OK, will test it out when I get to the workshop and see if that happens to me as well.
Hood

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: runfile not working from macro
« Reply #4 on: December 10, 2009, 09:00:08 AM »
I have tried all sorts to get it to work but looks like you will just have to wait until Rev 4 of Mach is out as it should support running macros from external buttons.

Hood