Hello Guest it is March 28, 2024, 06:38:12 PM

Author Topic: Run a macro from a button press??  (Read 19955 times)

0 Members and 1 Guest are viewing this topic.

Re: Run a macro from a button press??
« Reply #40 on: September 05, 2018, 05:50:19 AM »
thanks mate, ll give this a try tomorrow and report back.
Re: Run a macro from a button press??
« Reply #41 on: October 28, 2022, 04:16:44 PM »
OK, I dug this info up:


In Config >Hotkeys, set OEM Trigger #1 to 301

Create a macro named M1919.m1s and save it in MAch3\macros\yourprofile\

The contents of M1919 should be:
SetTriggerMacro(889)

In General Config, add M1919 to the Initialization String.

Setup up your button in ports and pins, Input pins, assigned to OEMTrigger #1.

Simple, huh?

Here's how this works.

The initialization string calls M1919, which tells Mach3 to assign M889 as the Trigger Macro. The 301 in Config Hotkeys tells Mach3 to run the macro assigned with SetTriggerMacro when the OEMTrigger is activated (your button).
Big thanks to you! This is very important information, I have been looking for it for a long time.