Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/29/2012 in all areas

  1. This is an UDF to create Mac style toolbars, like MobyDock, ObjectDock... screenshots: IconDock_1.jpg IconDock_2.jpg IconDock_3.jpg examples included. Download: IconDock.zip for german users: http://www.autoit.de/index.php?page=Thread&postID=215581#post215581 enjoy
    1 point
  2. Yashied

    WinAPIEx UDF

    LAST VERSION - 3.8 03-Jul-12 This library contains the WinAPI functions are not included for unknown reasons to the native AutoIt WinAPI library. I use this UDF in nearly all of my programs, and decided to share it with the AutoIt community. I agree that over time some of these functions will be part of the native AutoIt library, but still... The library includes some undocumented, but useful functions (eg _WinAPI_GetFontResourceInfo()). The library also contains all the necessary constants to work with the appropriate functions. Most functions from this UDF intended for experienced users, but beginners will find the same lot of useful information for yourself. I will be to periodically add new functions to the library. The archive contains WinAPIEx library, and as usual an excellent examples from me. Some examples I took from this forum and to simplify them for better understanding. For those who use SciTE (full version) I have prepared the au3.userudfs.properties and au3.user.calltips.api files to highlight functions from this UDF in your scripts. Just copy this files to ...SciTEProperties and ...SciTEAPI, respectively. I hope this UDF will be useful for many as for me. I look forward to any feedback and suggestions. Maybe somebody wants to add new WinAPI functions? Credits Available functions Files to download WinAPIEx UDF v3.8 for AutoIt 3.3.6.1 Previous downloads: 27953 WinAPIEx UDF v3.8 for AutoIt 3.3.8.x Previous downloads: 14850
    1 point
  3. Call has it's uses but in this example it isn't required. UBound should be used when you don't know the size of the Array, but as the 0th element in the Array returned by _FileListToArray is the number of items (so overall size if $aArray[0] + 1) you just use that instead.
    1 point
  4. Just so you know you could do it like this without the need for using Call. #include <File.au3> Example() Func Example() Local $aSplit = StringSplit(FileRead(@UserProfileDir & '/desktop/updates_2.ini'), "[)", 1) Local $aFileList = _FileListToArray(@UserProfileDir & '/desktop/updates/') If Not @error Then ; Check that an @error wasn't returned. For $i = 1 To $aFileList[0] Compare($aSplit, $aFileList[$i]) ; No need for Call, just use the function instead. Next EndIf EndFunc ;==>Example Func Compare($aArray, $sData) For $i = 5 To $aArray[0] If $aArray[$i] = $sData Then MsgBox(0, "", 'netData: ' & $aArray[$i] & ' localData: ' & $sData) EndIf Next EndFunc ;==>Compare
    1 point
×
×
  • Create New...