I want to trigger the Buttonpress_event() in a plugin with a screen button and/or a corresponding macro in gcode.
So my button number is 20,000 and my macro is M20000.
The first line in my macro is:
exec.Callbutton(20000);
So imagine I press the screen button and it calls the macro.
The macro then calls the button !!!!!!!!!!!
And then we end up with an endless loop (tested it).
So instead, can the macro call say button 20001, but this button DOES NOT ACTUALLY EXIST on the screen.
I would just want to use exec.Callbutton(20001) in the macro to call the plugin Buttonpress_event(), which would check if either the screen button 20000 or Callbutton(20001) had been issued.
Keith