Preface:
I am using Keyboard Maestro to script movement in a video game mostly using the "Found image" condition.
The script involves getting a player from point A to point B, which involves a ton of moving images. The way I am managing the next click is by creating a "pause until found image" condition is met, which will ensure the script will click on the appropriate object once the image is located. It works magnificently.
However, I am trying to take it to the next level.
What I want to do:
I would like to somehow, at any point during the script, identify my player has logged out indicated by a change in image (login screen), and have keyboard maestro log me in and continue the script.
Problems:
My first thought was putting the whole script under an "Until" action.
Firstly, once the until action was met (in this case, the login screen image found), it didn't continue with the script and debugger deemed it complete.
Secondly, if my character logged out in the middle of a "pause until found image" action, then the script would be paused indefinitely until the found action.
Is there a way to indefinitely interject ALL actions if a condition is met (in this case, found image of login screen), which then allows me to execute another set of actions (in this case, logging me back in), and then resetting the loop?
Please let me know if I could be more clear on anything!