Jump to content

_GUICtrlListView_GetItemText


Recommended Posts

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,

Tim

test.au3

Edited by timmalos
Link to comment
Share on other sites

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