Jump to content

Disable error msgbox and exit


Recommended Posts

hi all.

In the script i made, i get this error in a msgbox after compiled.

Line-1: Error:Array variable has incorrect number of subscripts or subscript dimension range exceeded

my script automate a website, and i have to store some key tables of the script.

is there any way to disable the msgbox and keep the script running after the error?

I searched the forum but i found nothing

Edited by Linux
You can help! Donate to AutoIt! or, visit ClimatePREDICTION.netMy posts:Travian Bot Example (100+ servers) BETAHow to Host you code/app for free! (unlimited team number) (Public or Private)"Sir, we're surrounded!" "Excellent. We can attack in any direction!"
Link to comment
Share on other sites

$TempArray = _StringBetween($array_temp[0], "<TD>", "</")
                        If IsArray($TempArray) Then

You can help! Donate to AutoIt! or, visit ClimatePREDICTION.netMy posts:Travian Bot Example (100+ servers) BETAHow to Host you code/app for free! (unlimited team number) (Public or Private)"Sir, we're surrounded!" "Excellent. We can attack in any direction!"
Link to comment
Share on other sites

thank you rasim, I will try to add that.

A bigger example of my code:

$array_temp = _StringBetween($Source, "img/un/a/del.gif", "</span></td></tr>")
                    If IsArray($array_temp) Then
                        ;save data to the slot
                        $TempArray = _StringBetween($array_temp[0], "<TD>", "</")
                        If IsArray($TempArray) Then
                            $TempArray[1] = StringTrimRight(StringRight($TempArray[1], 8), 3)
                            If Number(StringLeft($TempArray[1], 1)) = 0 Then $TempArray[1] = StringTrimLeft($TempArray[1], 1)
                            $TempArray[2] = StringRight($TempArray[2], 5)
You can help! Donate to AutoIt! or, visit ClimatePREDICTION.netMy posts:Travian Bot Example (100+ servers) BETAHow to Host you code/app for free! (unlimited team number) (Public or Private)"Sir, we're surrounded!" "Excellent. We can attack in any direction!"
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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