Jump to content

Search the Community

Showing results for tags 'items'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office


  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Member Title




Found 8 results

  1. I'm working on a script that needs to work with a huge database inside a combobox. I'm looking for the best way to link a multidimensional array to that data to load that data on to textfields. example: combo item 0 = "A", data = [index linked to combo item 0] [1,0,5,4,87,9,"xyz"] combo item 1 = "B", data = [index linked to combo item 1] [1,6,5,4,87,9,"zzz"] combo item 3 = "A", data = [index linked to combo item 3] [1,6,4,4,87,9,"aaa"] ; yes also double items! Would also like to be able to delete and add items on the fly btw.. Local $INDEX[0][10] ; ubound wil be resized like a stack while loading from a textfile ;inside gui: local $Combo = GUICtrlCreateCombo('...', 10, 10, 290, 25) ;gui loop: While True Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $Combo display() ; how do i link my array index to the combo labels to know what to show in the textfields? ; NOTE: (there are duplicate items in the combobox!) EndSwitch WEnd Any toughs are welcome. I was thinking about using _GUICtrlComboBox_GetCurSel($Combo) and use that integer to refer to the index (dimension 1) of the array Thanks, TheAutomator
  2. Hi dears how are you? I hope You fine I have a question please I've created a listView It has several columns Is there any way to search for text in an element of this list with text in all columns for example list view with 2 column the first is the file name and the second is the file path and i want to search for the item witch Containt the name and the path toGether I searched a lot but could not find what I was looking for If you do not understand the idea that I'm looking for, I can put an example Thanks in advance
  3. Hi there, I have a small hopefully quick fixable issue with reading information from my ListView: So in fact I just want to have information about which items are selected, so I'm using msgbox(0 , "return", GUICtrlRead($myListView), 1) but unfortunately it only returns me either the first item id or if this is not selected the second item id, or if this is not selected the third, etc. or 0 if none is selected. Anybody has an idea how to get the full picture of my >>multiple Items selected<< ListView? Thanks in advance! Clemens
  4. I have been trying to get this to work in my script...after creating an example script to ask a question, my original reason for writing the example was resolved. But I then found another issue that I am having trouble figuring out. What I want is a combo list that is dynamic. I want the list to remove items that have been selected, and add items that have been changed. I have am still trying to resolve, but thought I would post it and see if I can get an answer. ; example of removing combo items, and updating the combo list for all remaining combos - including those that already have been asigned #include <GUIConstantsEx.au3> #include <array.au3> Global $aComboList[16], $ahCombo[16], $iCount = 0 ; create the value of the combo list - using array to create values For $x = 1 To UBound($aComboList) - 1 $aComboList[$x] = $x Next ;_ArrayDisplay($aComboList) Global $aTempArray = $aComboList ; convert the array into a string that can be used on a combo control Global $sComboString = _ArrayToString($aComboList) ; create the gui Global $hGUI = GUICreate('Combo Remove Test', 250, 475) ; create the combos For $x = 1 To UBound($ahCombo) - 1 If $x = 1 Then $ahCombo[$x] = GUICtrlCreateCombo('', 10, 10) GUICtrlSetData(-1, $sComboString) Else $ahCombo[$x] = GUICtrlCreateCombo('', 10, 10 + $iCount) GUICtrlSetData(-1, $sComboString) EndIf $iCount += 30 Next ; Display the GUI. GUISetState(@SW_SHOW, $hGUI) ; main loop While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop ; check if values have been updated in on the combo controls For $x = 1 To UBound($ahCombo) - 1 If $ahCombo[$x] = $msg Then RemoveIndex($ahCombo[$x]) ; delete the value from the string, so it cannot be used in other combos EndIf Next WEnd ; Delete the previous GUI and all controls. GUIDelete($hGUI) Func RemoveIndex($hItem) ;_GUICtrlComboBox_GetList (not being used) Local $sTempComboValue = '' Local $sComboListTemp ConsoleWrite('Removing Item from Array - ' & GUICtrlRead($hItem) & @CRLF) For $x = UBound($aTempArray) - 1 To 0 Step -1 If GUICtrlRead($hItem) = $aTempArray[$x] Then _ArrayDelete($aTempArray, $x) ; ExitLoop EndIf Next ;_ArrayDisplay($aTempArray) ; update all combos to the new string $sComboListTemp = _ArrayToString($aTempArray) For $x = 0 To UBound($ahCombo) - 1 If GUICtrlRead($ahCombo[$x]) = '' Then ; if nothing has been selected, update with new combo list for future selection GUICtrlSetData($ahCombo[$x], '') GUICtrlSetData($ahCombo[$x], $sComboListTemp) ElseIf GUICtrlRead($ahCombo[$x]) <> '' Then ; if value already exist then keep value $sTempComboValue = GUICtrlRead($ahCombo[$x]) ; set new combo list for this item For $y = UBound($aTempArray) - 1 To 0 Step -1 If $aTempArray[$y] = '' Then _ArrayDelete($aTempArray, $y) $sComboListTemp = _ArrayToString($aTempArray) EndIf Next ; need a way to add the value back, if there was an item removed from selection for the calling control, and it is not being used elsewhere #cs ;If Not StringInStr($sComboListTemp, $sTempComboValue) Then $sComboListTemp &= '|' & $sTempComboValue ; check for selected value being used, if it is not being used, then reinsert Local $sNewComboList = '' For $z = 1 To UBound($ahCombo) - 1 If $z = UBound($ahCombo) - 1 Then ExitLoop $sNewComboList &= GUICtrlRead($ahCombo[$z]) & '|' Next Local $aNewComboList = StringSplit($sNewComboList, '|', 2) ;_ArrayDisplay($aNewComboList) ; Compare the strings $sNewComboList &= $sComboListTemp & $sComboString $aTempArray = _ArrayUnique($aNewComboList) _ArrayDisplay($aTempArray) _ArrayAdd($aTempArray, '') $sNewComboList = _ArrayToString($aTempArray) #ce GUICtrlSetData($ahCombo[$x], '') GUICtrlSetData($ahCombo[$x], $sTempComboValue & '|' & $sComboListTemp, $sTempComboValue) ;GUICtrlSetData($ahCombo[$x], $sTempComboValue & '|' & $sNewComboList, $sTempComboValue) ;GUICtrlSetData($ahCombo[$x], $sNewComboList, $sTempComboValue) EndIf Next EndFunc ;==>RemoveIndex
  5. For example I have a list like this.. How can I store all the list items on that GUI program into a string with the following format: $IniKey = "item1, item2, item3" Thanks in advanced!
  6. This have nothing to do with GUI resizing ( when to resize the GUI, to resize the listview also ), instead I want to resize the items from the listview control, to appear much larger, much thicker ( also the text within them to be larger ). Is this possible ?
  7. I recently managed to make a ListView sort correctly by clicking on it's columns, it does sort items very well but there's a very annoying thing >_< : every time after the items are sorted out, an item gets focused ! After I click a column, one item gets blue'd, like when its selected, even if its not ! Note that this happens only becuase of this function : _GUICtrlListView_SimpleSort Instead, the _GUICtrlListView_SortItems function is not doing this , but because of my luck,I must use _GUICtrlListView_SimpleSort ( but it is faster ) Here's my script to test to see what I mean: #include <GUIConstantsEx.au3> #include <ListViewConstants.au3> #include <WindowsConstants.au3> #include <GUIListView.au3> $Form1 = GUICreate("Form1", 383, 307, 192, 124) $ListView1 = GUICtrlCreateListView("C1|C2|C3", 56, 16, 257, 241) GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 0, 50) GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 1, 50) GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 2, 50) $ListView1_0 = GUICtrlCreateListViewItem("1|5|6", $ListView1) $ListView1_1 = GUICtrlCreateListViewItem("2|7|8", $ListView1) $ListView1_2 = GUICtrlCreateListViewItem("3|9|10", $ListView1) $ListView1_3 = GUICtrlCreateListViewItem("4|11|12", $ListView1) GUISetState(@SW_SHOW) Global $toggle = 1 While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $ListView1 _GUICtrlListView_SimpleSort($ListView1, $toggle, GUICtrlGetState($ListView1)) EndSwitch WEnd How could I get rid of this item focus ?
  8. How can I do to, when I click on on a specific column in a listview control, instead to get clicked/sorted other column. Is this possible ? I already know how to sort a column when I click on it : after the listview control was created, I add this code : _GUICtrlListView_RegisterSortCallBack(-1) I know that a gui can wait for a window event to happen, like a click on a control, but how can this be done to look if I clicked on a specific column and if so then, to sort (a clasic sort ) other column instead o.O ?
  • Create New...