Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Returning to a position in the Macro after an error
#1
I have a time out error setup something like this....

Code:
Copy      Help
err+
    sel(mes("Time Out!" "" "CTE!"))
        case 'C'
        case 'T' mac "Click 6"
        case 'E' ret

Case 'T' (Try again) - runs the macro from the beginning and Exit ends it But how do I get 'C' to continue it from where the time out error occurred?
It seems simple but I can't find it in the help menu.....

Also is there a way to back it up or move it forward a certain number of lines or to a certain place in the macro text?


Thanks!
Stuart
#2
Quote:how do I get 'C' to continue it from where the time out error occurred

On err+, the execution place is lost. It is possible only with err (which handles single statement).

;g1
something that throws error
err goto g1

Quote:how do I get 'C' to continue it from where the time out error occurred

Quote:is there a way to back it up or move it forward a certain number of lines or to a certain place in the macro text?

No. Only using goto to a predefined label.


Forum Jump:


Users browsing this thread: 1 Guest(s)