--- In mach1mach2cnc@..., art <fenerty@...> wrote:
Hi Tom:
Sorry, I meant to respond to this earlier. You need the
SetMacroTrigger()
script call. Calling a user script is a bit of a kludge. You call
SetTriggerMacro( MacroNumber) , the macronumber is the file number
like
m666.m1s woudl be SetTriggerMacro( 666 );
Then you use OEMTrigger on function #301 to actiavate that file.
The
SetMacroTrigger must be called before the OEMTrigger on function
301 will
work.
(Im thinking of a new way to do that which is easier, but its a
bit of a
bitch to get user buttons, they dont exist till the program is
fully
iniitialised..)
Thanks,
Art
www.artofcnc.ca
Can I assume that the above process is limited to one custom button?
I don't know if it would work but having a stored parameter for a
button such as ID # that could be assigned in the item details so a
direct call would activate the button would be nice from the outside
world. If user buttons are dynamic objects then it could be a
challenge on your part. There is always the nightmare of assigning
the same number to multiple buttons (like duplicate IP addresses)
and REALLY confuse things (:-)
Would it be easier to just call a specific Macro directly from the
input? If so what would the syntax look like for a call from a port
pin activation to a macro?