karliky Posted October 12, 2008 Share Posted October 12, 2008 (edited) Here is the info:expandcollapse popup>>>> Window <<<< Title: ASIGNACION EQUIPOS(MAC) A INSTALADORES Class: ThunderRT6FormDC Position: 254, 97 Size: 772, 605 Style: 0x16C80000 ExStyle: 0x00000100 Handle: 0x0005069A >>>> Control <<<< Class: MSFlexGridWndClass Instance: 3 ClassnameNN: MSFlexGridWndClass3 Advanced (Class): [CLASS:MSFlexGridWndClass; INSTANCE:3] ID: Text: Position: 94, 186 Size: 442, 262 ControlClick Coords: 256, 115 Style: 0x54100000 ExStyle: 0x00000000 Handle: 0x000305BE >>>> Mouse <<<< Position: 607, 421 Cursor ID: 0 Color: 0xE0E0E0 >>>> StatusBar <<<< >>>> Visible Text <<<< Salir 12/10/2008 Report 3 Report 2 Grabar LINEA DE EQUIPOS SIN MAC ASIGNADOS EQUIPOS PARA ASIGNAR Nuevo Identificador Report 1 EQUPOS DISPONIBLES Eliminar ASIGNADOS MAC EQUIPO INST/DESM DISPONIBLES >>>> Hidden Text <<<<#include <GuiListBox.au3> Opt("WinTitleMatchMode", 4) If WinExists("ASIGNACION EQUIPOS(MAC) A INSTALADORES") Then $hWin = WinGetHandle("ASIGNACION EQUIPOS(MAC) A INSTALADORES") $hLB = ControlGetHandle($hWin, "", "[CLASS:MSFlexGridWndClass; INSTANCE:3]") $iLBCount = _GUICtrlListBox_GetCount($hLB) $sLBList = "ListBox item texts:" & @CRLF For $i = 0 To UBound($iLBCount) - 1 $sLBList &= _GUICtrlListBox_GetText($hLB, $i) Next MsgBox(64, "ListBox Data", $sLBList) Else MsgBox(16, "Error", "Window is not present.") EndIfi can't distinguish a line from another. Here's a screenshot:And the result:how can i read it? :| Edited October 12, 2008 by karliky Link to comment Share on other sites More sharing options...
karliky Posted October 14, 2008 Author Share Posted October 14, 2008 _GUICtrlListBox_GetCount($hLB) always return 0, why? :\ Link to comment Share on other sites More sharing options...
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