Jump to content
Sign in to follow this  

Any way to go back to the starting point of a loop anytime I want?

Recommended Posts


My script is used to interface with the GUI of an application, it looks like:

while not $done







and an "AdlibEnable("_msgBox")" to handle the interrupts

each routine will contain codes to generate some mouse and keyboard events to work with a certain part of an application.

I need a way to restart to routine1 when an interrupt occurs. so suppose the script is in the middle of routine3 and trying to click on a textbox and send a text string, the application just crashes. my _msgbox() will handle that and restart the application, then exit, thus routine3 will continue to run, which is not what I wanted, I don't need any mouseclick or send strings that remains in routine3 anymore; I need the script to go back to routine1.

I am looking for something like this:

func _msgBox()

restart the application

goto start of routine1


any help and suggestions will be much appreciated. thanks

Share this post

Link to post
Share on other sites

Same counts for you: Don't start a new topic on the same subject .... stick with your original thread .

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
Live for the present,
Dream of the future,
Learn from the past.

Share this post

Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.