Hi,
I'm far from certain about this, maybe when smurph (or Daz or Tweakie or Brian or....) reads this he (they) can chime in.....
. Is there a way for a lua script to "wait" for a user to jog around and proceed when the user presses a button?
My understanding is no. The reasoning goes that if a script is running the Gcode interpreter which is reading and digesting the code has control of Machs central
trajectory planner. Even if the script is paused the trajectory planner is still 'busy' and therefore the GUI which is responsible for the jog input commands cannot
secure the services of the trajectory planner and thereby jog the machine.
To my way of thinking you'd have to split your script into two pieces. The first section would progress until the moment when operator jog inputs are required.
The first section of the script would terminate, not just pause. That would release the trajectory planner which would then be free to execute GUI sourced jog
input commands. Once the jogging is complete the second section of the script would be launched.
Craig