Page 1 of 1

[SUGGESTION] TRY CATCH OR ONERROR IMPLEMENTATION

Posted: Sat Jun 26, 2010 10:17 am
by coolcocky
HI,

I have another suggestion

How about an ONERROR do certain macro commands embedded in the macro itself instead of going back to scripting

this will be able to enhance the robustness of the macro and make it less break proof in case of any error on website

suggested syntax

TRY

MACRO COMMANDS
......................
....................
...................

ENDTRY
CATCH
ONERROR:301

DO CERTAIN MACRO COMMANDS IF ERROR IS 301

ENDONERROR:301
ON ERROR:322

DO SOME OTHER COMMANDS

ENDONERROR:322

ON ERROR:ELSE

DO SOME OTHER COMMANDS ON ANY OTHER ERROR

ENDONERROR:ELSE
ENDCATCH

you can see the power of these kinds of commands as it will make the macro very robust, of course i borrowed it from .NET but it should be easy to implement without introducing too much complexity in the macro language

PS: I dont think providing nested try catch should be implemented as it will create unnecessary complexity

I agree that this can be implemented by using scripting edition, but if you think of a macro which require more than one of these error checking requirements then we have to send macro commands on multiple times to an open window which makes scripting more complex

just my 2cents

regards,

CoooL

Re: [SUGGESTION] TRY CATCH OR ONERROR IMPLEMENTATION

Posted: Sat Jun 26, 2010 3:21 pm
by LSnelson
Nice idea. The Imacros folks need to give us at least a little programming abilities inside the macro. If would be good if you could tell what was happening while the macro was playing instead of having to wait until it finished.

L.S.

Re: [SUGGESTION] TRY CATCH OR ONERROR IMPLEMENTATION

Posted: Mon Jul 12, 2010 12:11 pm
by Tom, Tech Support
This is a good suggestion coolcocky. I have added it to our internal list of suggestions and feature requests for the development team to review. Thank you and keep them coming!

Re: [SUGGESTION] TRY CATCH OR ONERROR IMPLEMENTATION

Posted: Tue Jul 13, 2010 9:06 am
by coolcocky
Thanks Tom for appreciating my suggestion.

I will surely keep giving feedback for improving imacros.

I had made another suggestion regarding conditionals earlier also

regards,

CoooL

PS: I am not seeing Daniel as a part of moderation team now

Re: [SUGGESTION] TRY CATCH OR ONERROR IMPLEMENTATION

Posted: Wed Jul 14, 2010 5:51 pm
by Tom, Tech Support
coolcocky wrote: PS: I am not seeing Daniel as a part of moderation team now
Correct, Daniel has moved on to our AlertFox development team!