Jump to content

Recommended Posts

Posted

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

while not $done

routine1

routine2

routine3

routine4

routine5

wend

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

endfunc

any help and suggestions will be much appreciated. thanks

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...