for trigger macro from brains (note limit of only ONE macro)
Set Trigger Macro using “Push User Button” in Brians:
First, you dont put the code in a button, you put it in a macro file. For
example file: m600.m1s
SetMessage( "This is a macro call..")
Then , you have to set that macro to be the default macro call with a call to
SetTriggerMacro( 600 ) at some point in the program, an init string could do
that if the SetTriggerMacro call were in another macro file that is called on
startup. Then the brain will execute m600 whenever that brain termination code is
called.
For MORE than one macro triggered from external buttons..... you have three options:
1). put VB in your Macro pump to watch the leds, and then run the macros, (remember you will need interlocks in the macro pump
so you dont get multiple triggers due to the scan time. (look for the blurb I did for Interlocks in the VB section).
2). Buy a copy of Mach MAD (shameless plug for my plug, only 10 bucks!! "What a Bargin......." hehehee. at any rate you can trigger upto FIFTEEN
user macros, you just choose what ULED triggers it, and put the macro number that it controls, (interlock code is already taken care of in the plugin).
3). Write your own plugin to do it.
of the 3: Macropump is obviously the cheapest solution, all it cost you is your time........
scott