timmalos Posted July 29, 2011 Posted July 29, 2011 (edited) Hi guys. I maybe found a bug but i'm not sure if i made a mistake. When i want to use _GuiCtrlListView_GetItemText it works well only if i comment my line _GUICtrlListView_SetUnicodeFormat($hListView, False) In fact, If _SetUnicodeFormat is set to False, then _GetItemText returns ONLY the first chracter. If _SetUnicodeFormat is true, then it works. Is someone aware of this? To run the script, please add a .ini file in your directory, for example : (Can be what you want, my script only load the ini file to edit it) [Runtime] firstUrl=Test NavUrl=google.fr [Parameters] Step=Enable Focus=Disable [Path] Second=c:\program files\* First =c:\* Thx for help, Timtest.au3 Edited July 29, 2011 by timmalos
jaberwacky Posted August 1, 2011 Posted August 1, 2011 According to my best understanding your problem probably lies within this section of code: Local $Sections = IniReadSectionNames($ini) _ArrayDisplay($Sections) If IsArray($Sections) Then For $i = 1 To $Sections[0] _GUICtrlListView_InsertGroup($hListView, $iS, $iS, $Sections[$i]) $array = IniReadSection($ini, $Sections[$i]) _ArrayDisplay($Array) If IsArray($array) Then For $j = 1 To $array[0][0] _GUICtrlListView_AddItem($hListView, $array[$j][1]) _GUICtrlListView_AddSubItem($hListView, $iC, $array[$j][0], 1) _GUICtrlListView_SetItemGroupID($hListView, $iC, $iS) If $Sections[$i] = "Crypt" Then ReDim $ArrayCrypt[$array[0][0]] _ArrayDisplay($ArrayCrypt) $ArrayCrypt[$j - 1] = $iC EndIf $iC += 1 Next $iS += 1 Else MsgBox(0, "", "Erreur de lecture des parametres") Return 0 EndIf Next Else MsgBox(0, "", "Erreur de lecture du fichier de configuration") Return 0 EndIf Helpful Posts and Websites: AutoIt Wiki | Can't find what you're looking for on the Forum? My scripts: Guiscape | Baroque AU3 Code Formatter | MouseHoverCalltips | SciTe Customization GUI | ActiveWindowTrack Toy | Monitor Configuration UDF
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now