【问题标题】:I get error when I use zip.au3 and console.au3 together in an autoit script在 autoit 脚本中同时使用 zip.au3 和 console.au3 时出现错误
【发布时间】:2013-09-25 05:19:17
【问题描述】:

同时使用 zip.au3 和 console.au3 时出现以下错误。要模拟此错误,请在 SciTE 脚本编辑器中创建一个新脚本并包含 zip.au3 和 console.au3,然后运行它(只需两个包含行即可模拟)。您将收到两条弹出消息。

以下是错误消息:

第一个弹出消息:

AutoIt Error: 
Line 456 (File "C:\Program Files (z86)|AutoIt3\Include\zip.au3:):
$ZipFile=#ZipSplit[2]
$ZipFile=^Error
Error:  Array variable has incorrect number of subscripts or subscript dimension range exceeded.

第二条弹出消息:

Line 455 (File "C:\Program Files (z86)|AutoIt3\Include\Console.au3:):
If $_Amount_Startup_COnsole Then If^Error
Error:  Variable used without being declared.

(我想附上 zip.au3 和 console.au3。我该怎么做?它们可以从 Autoit 论坛下载 - 示例脚本)

问候, 纳齐尔

【问题讨论】:

    标签: autoit


    【解决方案1】:

    据我所知,问题在于 Zip.au3 在启动时启动了一个它不应该执行的功能。

    如果您删除 Zip.au3 中的第一行,那么它应该可以正常工作:

    If UBound($CMDLine) > 1 Then
        If $CMDLine[1] <> "" Then _Zip_VirtualZipOpen()
    EndIf
    

    所以我的 AutoIt 不再返回任何错误消息。但我不确定其他功能现在是否可以使用。试试看。

    泰丰2

    PS:对不起我的英语不好!

    【讨论】:

    • 谢谢 Teifun2。此解决方案有效。我不知道哪些功能不会起作用,但我正在使用的功能是有效的。
    • @Nazir 没问题 :) (如果我的回答对您有帮助,请将其标记为正确答案)谢谢 :) 我不确定是否有任何功能不起作用,它可能是但它必须:)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-24
    • 2023-03-11
    • 1970-01-01
    • 1970-01-01
    • 2018-01-22
    相关资源
    最近更新 更多