#cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.18.0 Author: Kanashius Script Function: UDF Version Detection example. #ce ---------------------------------------------------------------------------- #include #include "UDFVersionDetection.au3" ; these variables are automatically generated and updated, when the script is called ; (and the UDFs are in the right location, maybe switch these with different ones) ; see __UVD_GetVersion documentation for more information on the structure Global Const $__Version_UDF_TreeListExplorer = [["3.3.18.1", 3, 3, 18, 1],["2.13", 2, 13]] Global Const $__Version_UDF_IPC = [["3.3.18.1", 3, 3, 18, 1],["1.0.0", 1, 0, 0]] If Not @Compiled Then ; only do this, if the script is executed as .au3 Local $arFiles = ["..\AutoItIPC\IPC.au3", "..\AutoItTreeListExplorer\TreeListExplorer.au3"] For $i=0 to UBound($arFiles)-1 Step 1 ConsoleWrite(__UVD_VersionToString(__UVD_FileGetVersion($arFiles[$i]))&@crlf) __UVD_SaveVersionToScript($arFiles[$i]) Next Local $sAutoItIncludeFolder = StringLeft(@AutoItExe, StringInStr(@AutoItExe, "\", 0, -1)-1)&"\"&"Include" Local $arFiles = _FileListToArray($sAutoItIncludeFolder) For $i = 1 to UBound($arFiles)-1 Step 1 ConsoleWrite(__UVD_VersionToString(__UVD_FileGetVersion($sAutoItIncludeFolder&"\"&$arFiles[$i]))&" >> "&$arFiles[$i]&@crlf) Next EndIf