Is it possible to run a macro when a screen is opened ? I have a row of four buttons that load the four Gcode files that the user will be allowed on the machine, and a row of four userLEDs that indicate which file has been opened (which button has been pressed). When Mach is started no file has been opened, so no LED should be lit. I can't get away from the condition that one of them is lit.
I also have an array of buttons/LEDs layed out for a set of fixtures, and the LEDs show which fixture is active (which button has been pressed). Unfortunately, changing to another screen, swapping to a different fixture (G55, G58 etc) and then changing back to my screen doesn't update the LED.
A macro that ran when the screen was opened could fix both of these !