Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Error Handling

$
0
0
Hi Folks,

I am creating a script to download a link from a webpage and uses lots of "send" keys - I understand there are mouse functions which I can use, but that will require me to spend more time to rewrite what is already written.

The program runs every 5 minutes using scheduled tasks and we have the flexibility of any iteration going wrong as the data doesnt have to be uptodate at all times. But at times (maybe once in 50) I end up gettng the "variable must be of type object"  error and this results in the scheduled task to wait for user input to kill this instance. This creates the issue of requiring a manual intervention and as the cycle we need the program to run is for 12 hours, it will be difficult to man it.

Could someone please suggest if we can supress this error or maybe terminate the program itself on error by calling any error handle in the beginning of the program ?

Apologies if I am not clear on what I trying to achieve or being so dumb (not from the programming backgroung :) )

Thanks,
Shaheen

Viewing all articles
Browse latest Browse all 12506

Trending Articles