Jump to content

Search the Community

Showing results for tags 'guilistbox.au3'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • 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

Categories

  • 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

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. #include <WinAPI.au3> #include <GUIConstantsEx.au3> #include <GuilistBox.au3> #include <Misc.au3> #include <File.au3> #include <Array.au3> #include <String.au3> #include <Excel.au3> #include <MsgBoxConstants.au3> #include <WinAPIEx.au3> Opt("WinDetectHiddenText", 1) ;0=don't detect, 1=do detect Opt("WinSearchChildren", 1) ;0=no, 1=search children also $ttlWindow = "Kundinformation" $hdlWindow = WinGetHandle($ttlWindow) ;$id = _WinAPI_GetDlgCtrlID($hdlWindow) $hdlList = ControlGetHandle($hdlWindow, "", 8197) ;MsgBox(0,"",$hdlList) _GUICtrlListBox_ClickItem($hdlList, 3, "left") $count = _GUICtrlListBox_GetCount($hdlList) ;MsgBox(0,"",$count) Global $item Dim $textArr[0] For $item = 0 To ($count - 1) Step 1 _GUICtrlListBox_ClickItem($hdlList, $item, "left") $tlength = _GUICtrlListBox_GetTextLen($hdlList, $item) $iIndex = _GUICtrlListBox_GetText($hdlList, $item) MsgBox(64,"",$tlength & " | " & $iIndex) Next Hi, I'm trying to get the text from ListBox (selected item) or item looped as the code above, as you can see from the attached file I only get 2 characters for each item, is this a bug or is there something else making it return those 2, GetTextLen seems to be working ok and reads the length.
×
×
  • Create New...