581
Mach4 General Discussion / Re: Mach4 screen action/script precedence
« on: August 03, 2022, 05:22:06 PM »
Hi,
No idea. An action is internally programmed in Machs core whereas the script is part of the runtime ScreenScript. They do not run simultaneously
but rather consecutively as co-routines. The toggle button is a screen element and therefore the screen script must be running for the button event to be detected
and I would guess therefore that the script would run, given that the ScreenScript is the active chunk and THEN be released to Machs core whereon the Action would run.
This is just a guess.
Craig
Quote
Action then script?
No idea. An action is internally programmed in Machs core whereas the script is part of the runtime ScreenScript. They do not run simultaneously
but rather consecutively as co-routines. The toggle button is a screen element and therefore the screen script must be running for the button event to be detected
and I would guess therefore that the script would run, given that the ScreenScript is the active chunk and THEN be released to Machs core whereon the Action would run.
This is just a guess.
Craig