Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/03/2024 in all areas

  1. Kanashius

    listview edit udf

    Hi I did the complete rework using maps instead of dllstructs. This enables me to use them, to save the rows/cols in a map and check, if an index is in there. This is faster and also fixes your problem, because the string is not parsed anymore. A nice bonus: I use regexp for parsing them now, so its not limited to , seperated lists anymore. It simply parses all connected numbers as an index, with non number characters inbetween => "1,2,3" / "1 2 3" / "1.2.3" / ... TLDR: Bug fixed 😄 You find the new version in the post at the top.
    2 points
  2. But it will not always be like this. @Dirk_M when you run an AutoIt script (compiled or not), there is an AutoIt hidden window that is immediately created and its title is "AutoIt v3" , then this hidden window is closed as soon as the script ends. It means that when you run your script (with the AutoIt help file already opened), you're facing 2 windows whose names start with "AutoIt", which are : "AutoIt v3" "AutoIt Help (v3.3.16.1)" If we work on your script (the 1st case), two possibilities may happen now : #include <Array.au3> Opt("WinTitleMatchMode", 1) ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to -4=Nocase $sTitle = "AutoIt" $WinHandle = WinGetHandle($sTitle) ConsoleWrite("$WinHandle = " & $WinHandle & @crlf) WinExists($WinHandle) ; Window is found... yes but which one, the hidden "AutoIt v3" or "AutoIt Help (v3.3.16.1)" ? ConsoleWrite("WinExists($WinHandle) : "& WinExists($WinHandle) & @crlf) _ArrayDisplay(WinList($sTitle)) WinActivate($WinHandle) ; Window "AutoIt Help (v3.3.16.1)" will show only if it was detected before "AutoIt v3" ConsoleWrite("WinActivate($WinHandle) "& WinActivate($WinHandle) & @crlf) MsgBox(0, "", "") 1) If the hidden "AutoIt v3" window is retrieved first... ... then during the time _ArrayDisplay is active, I use a utility to change the status of the "AutoIt v3" window, from hidden to visible, just to show you what the final display looks like : 2) If the "AutoIt Help (v3.3.16.1)" window is retrieved first... Then the AutoIt help file will be activated Handles displayed in the Console confirm that they correspond to "AutoIt v3" or "AutoIt Help (v3.3.16.1)" , depending on the window which was retrieved first.
    1 point
  3. 1 point
  4. a small change to my _ArrayUnique2D_Ex() function that allows, by adding a parameter, to choose if the returned array must contain all of the columns of the input array or only those columns relating to the check of "Uniqueness" that is (for example): $aUniques = _ArrayUnique2D_Ex($aArray, "0,1,2,3,4,5", False) $aArray : The input array "0,1,2,3,4,5": [optional] The columns you want for "uniqueness" False/True : [optional] True (default) returns same columns as in input (reurn all columns?) False returns only the columns as in previous param Here the modified version: @boththose It seems to me that your function has a bug and a limit: 1) the bug: If you pass the following array (note the "FieldX" in middle of column3) your function does not catch it Local $aArr[7][7] = [ _ ['Field1','Field2','Field3','Field4','Field5','Field6','Result'], _ ['Field1','Field2','Field3','Field4','Field5','Field6','Result2'], _ ['Field1','Field2','Field3','Field4','Field5','Field6','Result3'], _ ['Field1','Field2','FieldX','Field4','Field5','Field6','Result4'], _ ['Field1','Field2','Field3','Field4','Field5','Field6','Result5'], _ ['Field1','Field2','Field3','Field4','Field5','Field6.1','Result6'], _ ['Field1','Field2','Field3','Field4','Field5','Field6.1','Result7']] 2) the limit: if you want to check only few columns, say 3 and 5, you can't.
    1 point
×
×
  • Create New...