Jump to content

guictrlsettip not working with an array


Recommended Posts

I have a script for showing people to know wich computer is switch off an what software people are using.

But now a want to create a tooltip.

this is just a little part of the script, to greyout all the computers that are switched off

For $icomp = 10 To 200 Step 1
_ResourceSetImageToCtrl(Eval('picc' & $icomp), "macgrey")
GUICtrlSetTip(Eval('picc' & $icomp), $user)
Next

but the tips are not working, does anybody know what I am doing wrong.

Link to comment
Share on other sites

Does $picc10 to $picc200 Exist as a ControlID?

It's not a problem with Eval >>

_Main()

Func _Main()
    GUICreate("My GUI Control Tip")
    Local $Label = GUICtrlCreateLabel("The Label", 10, 20)
    GUICtrlSetTip(Eval("Label"), "Tip Of The Label")
    GUISetState()

    While 1
        If GUIGetMsg() = -3 Then Exit
    WEnd
EndFunc   ;==>_Main

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

not all of them,

Just a part of the gui.

$Picc88 = GUICtrlCreatePic("", 1012, 64, 30, 30)
$picc57 = GUICtrlCreatePic("", 263, 280, 30, 30)
$Picc91 = GUICtrlCreatePic("", 320, 283, 30, 30)
$Picc93 = GUICtrlCreatePic("", 458, 64, 30, 30)
$Picc94 = GUICtrlCreatePic("", 163, 283, 30, 30)
$Picc68 = GUICtrlCreatePic("", 1146, 243, 30, 30)
$Picc97 = GUICtrlCreatePic("", 787, 64, 30, 30)

It is working if I use i.e. GUICtrlSetTip($picc57, $user)

I also checked:

GUICtrlSetTip(Eval('$picc' & $icomp), $user)

Link to comment
Share on other sites

Why are you saying "array" in the title when it's just a bunch of variables?

Also, using an array would be much better here. There's a Array Tutorial in the wiki.

Link to comment
Share on other sites

Why are you saying "array" in the title when it's just a bunch of variables?

Also, using an array would be much better here. There's a Array Tutorial in the wiki.

you're right. Thanx for the link.

But I still haven't solved mij problem, and I beleave that an array is not solving it, or am I wrong?

Link to comment
Share on other sites

No problem here >>

_Main()

Func _Main()
    Local $aArray[11] = [10]
    GUICreate("My GUI Control Tip", 150, 255)
    For $i = 1 To $aArray[0]
        $aArray[$i] = GUICtrlCreateLabel("The Label " & $i, 10, 20 * $i)
        GUICtrlSetTip(-1, "Tip Of The Label " & $i)
    Next
    $iButton = GUICtrlCreateButton("Change Tips", 10, 20 * $i)
    GUISetState(@SW_SHOW)

    While 1
        Switch GUIGetMsg()
            Case -3
                Exit
            Case $iButton
                For $i = 1 To $aArray[0]
                    GUICtrlSetTip($aArray[$i], "New Tip Of The Label " & $i)
                Next
        EndSwitch
    WEnd
EndFunc   ;==>_Main

Which suggests there is more to it then the code you have shown us :)

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

The code is quit large (and not made by a programmer :))

#region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Outfile=prog_check.exe
#AutoIt3Wrapper_UseUpx=n
#AutoIt3Wrapper_Res_Comment=different check for a program
#AutoIt3Wrapper_Res_Description=domaintools
#AutoIt3Wrapper_Res_Fileversion=1.0.0.224
#AutoIt3Wrapper_Res_FileVersion_AutoIncrement=y
#AutoIt3Wrapper_Res_LegalCopyright=Jochem Kolthof
#AutoIt3Wrapper_Res_Language=1033
#AutoIt3Wrapper_Run_After=ResHacker.exe -add %out%, %out%, imac_used.jpg, rcdata, macused, 0
#AutoIt3Wrapper_Run_After=ResHacker.exe -add %out%, %out%, imac_free.jpg, rcdata, macfree, 0
#AutoIt3Wrapper_Run_After=ResHacker.exe -add %out%, %out%, imac_grey.jpg, rcdata, macgrey, 0
#AutoIt3Wrapper_Run_After=ResHacker.exe -add %out%, %out%, macagrey.jpg, rcdata, macagrey, 0
#AutoIt3Wrapper_Run_After=ResHacker.exe -add %out%, %out%, plattegrond.jpg, rcdata, plattegrond, 0
#AutoIt3Wrapper_Run_After=upx.exe --best --compress-resources=0 "%out%"
#AutoIt3Wrapper_Run_Tidy=y
#endregion ;**** Directives created by AutoIt3Wrapper_GUI ****
;~ eigen Includes
#include <pass.au3>
#include "GDIpProgress.au3"
;~ standaard Includes
#include "CompInfo.au3"
#include <Excel.au3>
#include <File.au3>
#include <Array.au3>
#include <String.au3>
#include <resources.au3>
;~ GUI Includes
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <GuiStatusBar.au3>
#include <WindowsConstants.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <TreeViewConstants.au3>
#include <MenuConstants.au3>
#include <GuiComboBoxEx.au3>
#include <ListviewConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>

Opt("GUIOnEventMode", 1)

$taskpath = "c:\temp\"
$taskfile = "_Process_List.ini"

Global $aCompList = _netwerklist(0x1)
Global $Aadobe, $cI_CompName, $System, $host, $oExceluser, $program, $tasks, $Ausers
Global $aParts[3] = [300, 150, -1]
Global $fusers = "\\nas\applicatie\program_use\users.txt"
_FileReadToArray($fusers, $Ausers)
Global $Aarkey = _FileListToArray("\\knas\applicatie\program_use\arkey\Aown")
_ArraySort($aCompList)
_FileReadToArray("\\nas\applicatie\program_use\adobe\adobeusers.txt", $Aadobe)

#region ### START Koda GUI section ### 
$adobe_1 = GUICreate("search running programs", 1200, 460, 25, 200)
GUISetState()
GUISetBkColor(0xFFFFFF)
GUISetFont(7)

$Picv12 = GUICtrlCreatePic("", 937, 112, 30, 30)
$Picc73 = GUICtrlCreatePic("", 694, 283, 30, 30)
$Picc92 = GUICtrlCreatePic("", 60, 64, 30, 30)
$Picc88 = GUICtrlCreatePic("", 1012, 64, 30, 30)
$picc57 = GUICtrlCreatePic("", 263, 280, 30, 30)
$Picc91 = GUICtrlCreatePic("", 320, 283, 30, 30)
$Picc93 = GUICtrlCreatePic("", 458, 64, 30, 30)
$Picc94 = GUICtrlCreatePic("", 163, 283, 30, 30)
$Picc68 = GUICtrlCreatePic("", 1146, 243, 30, 30)
$Picc97 = GUICtrlCreatePic("", 787, 64, 30, 30)
$Picc98 = GUICtrlCreatePic("", 412, 283, 30, 30)
$Picg07 = GUICtrlCreatePic("", 438, 245, 30, 30)
$Picg08 = GUICtrlCreatePic("", 937, 245, 30, 30)
$Picg09 = GUICtrlCreatePic("", 1147, 282, 30, 30)
$Picg10 = GUICtrlCreatePic("", 139, 108, 30, 30)
$Picg11 = GUICtrlCreatePic("", 234, 108, 30, 30)
$Picc95 = GUICtrlCreatePic("", 26, 64, 30, 30)
$Picc85 = GUICtrlCreatePic("", 919, 64, 30, 30)
$Picc76 = GUICtrlCreatePic("", 348, 64, 30, 30)
$Picc64 = GUICtrlCreatePic("", 1116, 64, 30, 30)
$Picc55 = GUICtrlCreatePic("", 1116, 105, 30, 30)
$Picc79 = GUICtrlCreatePic("", 348, 108, 30, 30)
$Picc75 = GUICtrlCreatePic("", 428, 64, 30, 30)
$Picc103 = GUICtrlCreatePic("", 460, 105, 30, 30)
$Picv86 = GUICtrlCreatePic("", 508, 64, 30, 30)
$Picc62 = GUICtrlCreatePic("", 596, 64, 30, 30)
$Picc59 = GUICtrlCreatePic("", 636, 64, 30, 30)
$Picc63 = GUICtrlCreatePic("", 724, 64, 30, 30)
$Picc50 = GUICtrlCreatePic("", 820, 105, 30, 30)
$Picc80 = GUICtrlCreatePic("", 820, 64, 30, 30)
$Picc58 = GUICtrlCreatePic("", 948, 64, 30, 30)
$Picc52 = GUICtrlCreatePic("", 1044, 105, 30, 30)
$Picc109 = GUICtrlCreatePic("", 1044, 64, 30, 30)
$Picc78 = GUICtrlCreatePic("", 129, 64, 30, 30)
$Picc71 = GUICtrlCreatePic("", 161, 64, 30, 30)
$Picc77 = GUICtrlCreatePic("", 321, 64, 30, 30)
$Picc83 = GUICtrlCreatePic("", 443, 283, 30, 30)
$Picc72 = GUICtrlCreatePic("", 347, 283, 30, 30)
$Picc87 = GUICtrlCreatePic("", 323, 245, 30, 30)
$Picc60 = GUICtrlCreatePic("", 227, 245, 30, 30)
$Picc84 = GUICtrlCreatePic("", 131, 245, 30, 30)
$Picc82 = GUICtrlCreatePic("", 259, 64, 30, 30)
$Picc69 = GUICtrlCreatePic("", 47, 243, 30, 30)
$Picc108 = GUICtrlCreatePic("", 227, 64, 30, 30)
$picc96 = GUICtrlCreatePic("", 729, 283, 30, 30)
$Picc106 = GUICtrlCreatePic("", 869, 283, 30, 30)
$Picc61 = GUICtrlCreatePic("", 597, 283, 30, 30)
$Picc54 = GUICtrlCreatePic("", 502, 283, 30, 30)
$Picc56 = GUICtrlCreatePic("", 829, 283, 30, 30)
$Picc65 = GUICtrlCreatePic("", 1104, 283, 30, 30)
$Picc89 = GUICtrlCreatePic("", 1017, 283, 30, 30)
$Picc51 = GUICtrlCreatePic("", 1018, 245, 30, 30)
$Picc70 = GUICtrlCreatePic("", 957, 283, 30, 30)
$Picc74 = GUICtrlCreatePic("", 921, 283, 30, 30)
$picc43 = GUICtrlCreatePic("", 867, 64, 30, 30)
$Picc107 = GUICtrlCreatePic("", 797, 283, 30, 30)
$Picc66 = GUICtrlCreatePic("", 636, 283, 30, 30)
$Picc67 = GUICtrlCreatePic("", 1045, 283, 30, 30)
$Picc99 = GUICtrlCreatePic("", 538, 283, 30, 30)
$Picc81 = GUICtrlCreatePic("", 29, 106, 30, 30)
$Picc105 = GUICtrlCreatePic("", 864, 112, 30, 30)
$Picc100 = GUICtrlCreatePic("", 1104, 242, 30, 30)
$Picc101 = GUICtrlCreatePic("", 488, 145, 30, 30)
$Picc102 = GUICtrlCreatePic("", 488, 186, 30, 30)
$Picc104 = GUICtrlCreatePic("", 261, 247, 30, 30)
$Picc41 = GUICtrlCreatePic("", 866, 246, 30, 30)
$Picc90 = GUICtrlCreatePic("", 52, 278, 30, 30)
$Picc111 = GUICtrlCreatePic("", 430, 105, 30, 30)
$Picc110 = GUICtrlCreatePic("", 227, 283, 30, 30)
$Picc10 = GUICtrlCreatePic("", 127, 286, 30, 30)

$plattegrond = GUICtrlCreatePic("", 0, 32, 1200, 319)
_ResourceSetImageToCtrl($plattegrond, "plattegrond")
GUICtrlSetTip(-1, "plattegrond")

$wslt04 = GUICtrlCreatePic("", 440, 360, 92, 55)
$PMarquee = _ProgressCreate(400, 190, 400, 20, 0xFFFFFF, 0xFFFFFF, 0x000000, 0x000000)
_ProgressMarquee($PMarquee, 1, 0)

$acomp = GUICtrlCreatePic("iMac_grey.jpg", 7, 406, 30, 30)
$ause = GUICtrlCreatePic("iMac_Used.jpg", 7, 357, 30, 30)
$afree = GUICtrlCreatePic("iMac_Free.jpg", 7, 381, 30, 30)
$adobeinuse = GUICtrlCreateLabel("computers in use", 40, 361, 350, 20)
GUICtrlSetFont(-1, 10, 400, 0, "Arial")
$adobefree = GUICtrlCreateLabel("computers free", 40, 386, 350, 20)
GUICtrlSetFont(-1, 10, 400, 0, "Arial")
$allcomputers = GUICtrlCreateLabel("computer", 40, 410, 350, 20)
GUICtrlSetFont(-1, 10, 400, 0, "Arial")
$overview = GUICtrlCreateLabel("overview computers using:", 8, 8, 232, 22)
GUICtrlSetFont(-1, 12, 400, 0, "Arial")
$CLOSE = GUICtrlCreateButton("CLOSE", 1088, 408, 105, 25, 0)
$pulldown = GUICtrlCreateCombo("Adobe", 200, 8, 169, 25)
GUICtrlSetFont(-1, 10, 400, 0, "Arial")
GUICtrlSetData(-1, "Arkey|Autocad|Vectorworks")
GUICtrlSetState(-1, $GUI_show)
$Buttonpulldown = GUICtrlCreateButton("Check", 376, 8, 65, 25, 0)
$refresh = GUICtrlCreateButton("refresh info", 1088, 8, 105, 25)
GUISetState(@SW_SHOW)
$StatusBar1 = _GUICtrlStatusBar_Create($adobe_1, $aParts)
GUISetState(@SW_SHOW)
GUISetState()
#endregion ### END Koda GUI section ###
GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked")
GUICtrlSetOnEvent($CLOSE, "CLOSEClicked")
GUICtrlSetOnEvent($Buttonpulldown, "_guipulldown")
GUICtrlSetOnEvent($refresh, "_sortarrayworkstations")

_sortarrayworkstations()

Func _guipulldown()
    $programcheck = GUICtrlRead($pulldown)
    If $programcheck = "Adobe" Then
        GUICtrlSetData($allcomputers, "computer without selected software")
        _zoekadobe()
    ElseIf $programcheck = "vectorworks" Then
        $program = "vector"
        GUICtrlSetData($allcomputers, "computer without selected software or turned off")
        _zoek()
    ElseIf $programcheck = "arkey" Then
        $program = "arkey"
        GUICtrlSetData($allcomputers, "computer without selected software")
        _zoekarkey()
    ElseIf $programcheck = "autocad" Then
        $program = "acad"
        GUICtrlSetData($allcomputers, "computer without selected software or turned off")
        _zoek()
    EndIf
EndFunc   ;==>_guipulldown

Func _sortarrayworkstations()
    For $N = UBound($aCompList) - 1 To 0 Step -1
        If StringLeft($aCompList[$N], 4) = "ws-l" Then _ArrayDelete($aCompList, $N)
        If StringLeft($aCompList[$N], 4) = "ws-a" Then _ArrayDelete($aCompList, $N)
    Next
    _taskspercomputer()
EndFunc   ;==>_sortarrayworkstations

Func _taskspercomputer()
    For $cI_CompName In $aCompList
        Ping($cI_CompName, 10)
        If @error = 0 Then
            _GUICtrlStatusBar_SetText($StatusBar1, "checking : " & $cI_CompName)
            Run(@ComSpec & " /c " & "tasklist /s " & $cI_CompName & "." & $dom & " /U:" & $user & " /p:" & $pw & " > " & $taskpath & $cI_CompName & $taskfile, "", @SW_HIDE)
        Else
            ContinueLoop
        EndIf
        Sleep(50)
    Next
    _statusbaridle()
    _ProgressDelete($PMarquee)
EndFunc   ;==>_taskspercomputer

Func _zoek()
    For $N = UBound($aCompList) - 1 To 0 Step -1
        If StringLeft($aCompList[$N], 4) = "ws-g" Then _ArrayDelete($aCompList, $N)
    Next
    _greyout()
    For $host In $aCompList
        If FileExists($taskpath & $host & $taskfile) Then
            _ResourceSetImageToCtrl(Eval('pic' & StringTrimLeft($host, 3)), "macfree")
            _FileReadToArray($taskpath & $host & $taskfile, $tasks)
            $iKeycheck = _ArraySearch($tasks, $program, 0, 0, 0, 1, 1, 0)
            If Not @error Then
                _ResourceSetImageToCtrl(Eval('pic' & StringTrimLeft($host, 3)), "macused")
            EndIf
        Else
            ContinueLoop
        EndIf
    Next
EndFunc   ;==>_zoek

Func _zoekarkey()
    _greyout()
    For $host In $Aarkey
        _ResourceSetImageToCtrl(Eval('pic' & StringTrimLeft($host, 3)), "macfree")
    Next
    For $host In $Aarkey
        If FileExists($taskpath & $host & $taskfile) Then
            _FileReadToArray($taskpath & $host & $taskfile, $tasks)
            $iKeycheck1 = _ArraySearch($tasks, $program, 0, 0, 0, 1, 1, 0)
            If Not @error Then
                _ResourceSetImageToCtrl(Eval('pic' & StringTrimLeft($host, 3)), "macused")
            EndIf
        Else
            ContinueLoop
        EndIf
    Next
EndFunc   ;==>_zoekarkey

Func _zoekadobe()
    _greyout()
    For $host In $Aadobe
        _ResourceSetImageToCtrl(Eval('pic' & StringTrimLeft($host, 3)), "macfree")
    Next
    For $host In $Aadobe
        If FileExists($taskpath & $host & $taskfile) Then
            _FileReadToArray($taskpath & $host & $taskfile, $tasks)
            $iKeycheck = _ArraySearch($tasks, "photoshop", 0, 0, 0, 1, 1, 0)
            If Not @error Then
                _ResourceSetImageToCtrl(Eval('pic' & StringTrimLeft($host, 3)), "macused")
            EndIf
            $keycheck1 = _ArraySearch($tasks, "indesign", 0, 0, 0, 1, 1, 0)
            If Not @error Then
                _ResourceSetImageToCtrl(Eval('pic' & StringTrimLeft($host, 3)), "macused")
            EndIf
            $keycheck2 = _ArraySearch($tasks, "acrobat", 0, 0, 0, 1, 1, 0)
            If Not @error Then
                _ResourceSetImageToCtrl(Eval('pic' & StringTrimLeft($host, 3)), "macused")
            EndIf
            $keycheck3 = _ArraySearch($tasks, "illustrator", 0, 0, 0, 1, 1, 0)
            If Not @error Then
                _ResourceSetImageToCtrl(Eval('pic' & StringTrimLeft($host, 3)), "macused")
            EndIf
        Else
            ContinueLoop
        EndIf
    Next
;~  _zoekadobelaptop()
EndFunc   ;==>_zoekadobe

Func _netwerklist($iSrvType = -1, $sDomain = '')
    Local $uBufPtr = DllStructCreate("ptr;int;int"), $res[1] = [0], $i
    Local $uRecord = DllStructCreate("dword;ptr"), $iRecLen = DllStructGetSize($uRecord)
    Local $uString = DllStructCreate("char[16]")
    Local $uDomain = DllStructCreate("byte[32]"), $pDomain = 0
    If Not ($sDomain = '' Or $sDomain = '*') Then
        DllStructSetData($uDomain, 1, StringToBinary($sDomain, 2))
        $pDomain = DllStructGetPtr($uDomain)
    EndIf
    Local $ret = DllCall("netapi32.dll", "int", "NetServerEnum", _
            "ptr", 0, "int", 100, _
            "ptr", DllStructGetPtr($uBufPtr, 1), "int", -1, _
            "ptr", DllStructGetPtr($uBufPtr, 2), _
            "ptr", DllStructGetPtr($uBufPtr, 3), _
            "int", $iSrvType, "ptr", $pDomain, "int", 0)
    If $ret[0] Then Return SetError(1, $ret[0], '')
    Local $res[DllStructGetData($uBufPtr, 3) + 1] = [DllStructGetData($uBufPtr, 3)]
    For $i = 1 To DllStructGetData($uBufPtr, 3)
        Local $uRecord = DllStructCreate("dword;ptr", DllStructGetData($uBufPtr, 1) + ($i - 1) * $iRecLen)
        Local $sNBName = DllStructCreate("byte[32]", DllStructGetData($uRecord, 2))
        DllStructSetData($uString, 1, BinaryToString(DllStructGetData($sNBName, 1), 2))
        $res[$i] = DllStructGetData($uString, 1)
    Next
    $ret = DllCall("netapi32.dll", "int", "NetApiBufferFree", "ptr", DllStructGetData($uBufPtr, 1))
    Return $res
EndFunc   ;==>_netwerklist

Func _greyout()
    For $icomp = 10 To 200 Step 1
        _ResourceSetImageToCtrl(Eval('picc' & $icomp), "macgrey")
        GUICtrlSetTip(Eval('$picc' & $icomp), "macgrey")
    Next
    For $icomp = 10 To 200 Step 1
        _ResourceSetImageToCtrl(Eval('picg' & $icomp), "macgrey")
        GUICtrlSetTip($Picc85, "macgrey")
    Next
    For $icomp = 10 To 200 Step 1
        _ResourceSetImageToCtrl(Eval('picv' & $icomp), "macgrey")
        GUICtrlSetTip($Picc85, "macgrey")
    Next
    For $icomp = 1 To 9 Step 1
        _ResourceSetImageToCtrl(Eval('picc0' & $icomp), "macgrey")
        GUICtrlSetTip($Picc85, "macgrey")
    Next
    For $icomp = 1 To 9 Step 1
        _ResourceSetImageToCtrl(Eval('picg0' & $icomp), "macgrey")
        GUICtrlSetTip($Picc85, "macgrey")
    Next
    For $icomp = 1 To 9 Step 1
        _ResourceSetImageToCtrl(Eval('picv0' & $icomp), "macgrey")
        GUICtrlSetTip($Picc85, "macgrey")
    Next
    For $icomp = 1 To 9 Step 1
        _ResourceSetImageToCtrl(Eval('WSLT0' & $icomp), "macagrey")
        GUICtrlSetTip($Picc85, "macgrey")
    Next
EndFunc   ;==>_greyout

Func _statusbaridle()
    _GUICtrlStatusBar_SetText($StatusBar1, "idle...")
EndFunc   ;==>_statusbaridle

While 1
    Sleep(1000)
WEnd
Func CLOSEClicked()
    FileDelete($taskpath & "*.ini")
    Exit
EndFunc   ;==>CLOSEClicked
Link to comment
Share on other sites

OK, I will be honest I haven't run your Script as you have Includes which I don't have/use.

Firstly >>

#AutoIt3Wrapper_Run_After=ResHacker.exe -add %out%, %out%, imac_used.jpg, rcdata, macused, 0
can be changed to

#AutoIt3Wrapper_Res_File_Add=imac_used.jpg,RT_RCDATA,macused

since AutoIt3Wrapper was changed, make sure you have the newest version of SciTE4AutoIt3.

Secondly >> Change GUICtrlCreatePic() to GUICtrlCreateLabel because _ResourceSetImageToCtrl() can "Add" an Image to a Label.

Thirdly >> Maybe swap "Hard Coded" Variables for an Array as I showed in the above Example, it shouldn't be difficult to do :)

Hopes this Helps :)

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

Firstly: i changed that, compiling is much faster now! thanx.

secondly i did that too, I don`t understand exactly why.....

thirdly; but the positions of the computers has to be hard coded becuase it is a plan. So In that case I Have to create an array of the gui elements?

Link to comment
Share on other sites

OK, Good! :)

When I mean "Hard Coded" I am talking about $Computer1, $Computer2...$Computer200 why not just have $Array[1],$Array[2]...$Array[200] So instead of storing the ControlID in a variable you store it in an Array. An Array is more practical in your case, because I only Eval() when there is no alternative, but in your case there is! :)

So perhaps change this >>

$Picv12 = GUICtrlCreatePic("", 937, 112, 30, 30)
$Picc73 = GUICtrlCreatePic("", 694, 283, 30, 30) ...
to this >>

Global $aArray[200]
$aArray[0] = GUICtrlCreatePic("", 937, 112, 30, 30)
$aArray[1] = GUICtrlCreatePic("", 694, 283, 30, 30) ...

Are you familiar with Arrays?

Edited by guinness

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

Oke, I am bit familiar with arrays.

But the name of the picture is now also the name of the computer i.e.:

$Picc73 is workstation c73, so thats why I used hardcoded variables.

and for example I can`t use

$aArray[73] = GUICtrlCreatePic("", 694, 283, 30, 30) for workstation c73 because there are many missing numbers.

Link to comment
Share on other sites

$aArray[73] = GUICtrlCreatePic("", 694, 283, 30, 30) for workstation c73 because there are many missing numbers.

Why not, I don't really follow? Can't you do this?

Global $aArray[200]
For $i = 0 To Ubound($aArray, 1) - 1
    ConsoleWrite("Image File is " & "C" & $i + 1 & ".jpg" & @CRLF)
Next
Then maybe have a look at 2D Arrays e.g. Store the ControlID in the 1st Column and Image File Name in th 2nd Column. Edited by guinness

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

Because we are missing workstation c1 to c43 and c80 and c.. etc. Also they aren't placed on logical places (i.e. computer c66 is placed next to c78 en next to c44.) Bit messy. Then I first have to make a table (array or somewhat)

position 1 has computer c73

position 2 has computer c43

position 3 has computer c99 etc.

I have to discribe the positions of the computers somewhere...

It should be great if I could make a scipt one day to check which computer is connected to which portnumber physically (switch)

I found a probloem with my script; When I removed the background image (actually the map), All tips are showing up??? Bit strange isn`t it?

Edited by Jochem
Link to comment
Share on other sites

I found a probloem with my script; When I removed the background image (actually the map), All tips are showing up??? Bit strange isn`t it?

Like I said I didn't test! But the problem is to be expected. If you set the Background at the end of the GUI creation this problem shouldn't exist, because Controls are layered on top of each other!

_Not_Working()
_Working()

Func _Not_Working()
    Local $aArray[11] = [10]
    GUICreate("_Not_Working()", 150, 255)
    GUICtrlCreatePic("", 0, 0, 150, 255) ; <<<<<
    For $i = 1 To $aArray[0]
        $aArray[$i] = GUICtrlCreateLabel("The Label " & $i, 10, 20 * $i)
        GUICtrlSetTip(-1, "Tip Of The Label " & $i)
    Next
    $iButton = GUICtrlCreateButton("Change Tips", 10, 20 * $i)

    GUISetState(@SW_SHOW)

    While 1
        Switch GUIGetMsg()
            Case -3
                ExitLoop
            Case $iButton
                For $i = 1 To $aArray[0]
                    GUICtrlSetTip($aArray[$i], "New Tip Of The Label " & $i)
                Next
        EndSwitch
    WEnd
EndFunc   ;==>_Not_Working

Func _Working()
    Local $aArray[11] = [10]
    GUICreate("_Working()", 150, 255)
    For $i = 1 To $aArray[0]
        $aArray[$i] = GUICtrlCreateLabel("The Label " & $i, 10, 20 * $i)
        GUICtrlSetTip(-1, "Tip Of The Label " & $i)
    Next
    $iButton = GUICtrlCreateButton("Change Tips", 10, 20 * $i)
    GUICtrlCreatePic("", 0, 0, 150, 255) ; <<<<<
    GUISetState(@SW_SHOW)

    While 1
        Switch GUIGetMsg()
            Case -3
                ExitLoop
            Case $iButton
                For $i = 1 To $aArray[0]
                    GUICtrlSetTip($aArray[$i], "New Tip Of The Label " & $i)
                Next
        EndSwitch
    WEnd
EndFunc   ;==>_Working

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

Oke, thanks for helping.

I am still thinking about a solution for the array. Maybe an excel sheet with position - computer

But I encounter another small problem. When the tips apear on the screen they are whiping out a part of the images who are placed with the function _ResourceSetImageToCtrl?

Link to comment
Share on other sites

Maybe set the Tip before _ResourceSetImageToCtrl?

Arrays at first are difficult to master (if you don't have programming knowledge,) but once learnt they can help a great deal. What would you rather do hard code 1000 GUICtrlCreateLabels() worth over a 1000 lines or in an Array with a Loop, maybe 10 lines? I know what I would prefer :)

Edited by guinness

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

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