2015-12-18 92 views
-1

我獲得以下在我的腳本錯誤:AutoIt的未知函數名

==> Unknown function name.:

基本上我有這樣的:

Local $sFoo_01 = "Z:\Foo\3\" 
    Local $sFoo_02 = "Z:\Foo\6\" 
    Local $sFoo_03 = "Z:\Foo\8\" 
    Local $sFoo_04 = "Z:\Foo\9\" 

Func Test() 

     Local $aFooNew_01 = _FileListToArray($sFoo_01, "*") 
     Local $aFooNew_02 = _FileListToArray($sFoo_02, "*") 
     Local $aFooNew_03 = _FileListToArray($sFoo_03, "*") 
     Local $aFooNew_04 = _FileListToArray($sFoo_04, "*") 
     ... 
EndFunc 

... 

     Local $aFooNew_01 = _FileListToArray($sFoo_01, "*") 
     Local $aFooNew_02 = _FileListToArray($sFoo_02, "*") 
     Local $aFooNew_03 = _FileListToArray($sFoo_03, "*") 
     Local $aFooNew_04 = _FileListToArray($sFoo_04, "*") 

錯誤:

Local $aFooNew_01 = _FileListToArray($sFoo_01, "*") 
            ^Error 

回答

0

_FileListToArray功能包括作爲用戶定義的函數,因此您必須在h中編寫#include <File.au3> eader你的腳本,使其工作。

+0

你也可以試試這個:https://www.autoitscript.com/forum/topic/111554-organize-includes-in-scite4autoit3/ – Xenobiologist

+1

謝謝,但我已經包括它,但不起作用 – Ale