Jump to content

Error when I use zip.au3 and console.au3 together in an autoit script


nazirm
 Share

Recommended Posts

I get the following error when I use zip.au3 and console.au3 together.  To simulate this error please create a new script in SciTE script editor and include zip.au3 and console.au3 and then run it (just two include lines are sufficient to simulate).  You will get two pop up messages.

Here are the error messages:

First Popup message:

AutoIt Error: 

Line 456 (File "C:Program Files (z86)|AutoIt3Includezip.au3:):

$ZipFile=#ZipSplit[2]
$ZipFile=^Error

Error:  Array variable has incorrect number of subscripts or subscript dimension range exceeded.

Second popup message:

Line 455 (File "C:Program Files (z86)|AutoIt3IncludeConsole.au3:):

If $_Amount_Startup_COnsole Then If^Error

Error:  Variable used without being declared.

I have attached the zip.au3 and console.au3..although they are available for download.

Console.au3

Zip.au3

Link to comment
Share on other sites

The problem is that both scripts wants to use $CmdLine. Comment out line 12 - 14 in Zip.au3 to get rid of the error.

The only UDFs you can expect will work together without small problems are the UDFs that belong to the official installation.

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...