GordonFreeman Posted May 31, 2012 Posted May 31, 2012 (edited) Note: The black border indicates "finder tool" of Autoit Window Info.My goal is to pass the information from one catalog to another.but just locked myself in the bar codeI tried in many ways with the ControlGet Text but only returns a blank stringThe Info:I need the of first code (bar code)>>>> Window <<<<Title: ACM - ACM-002Class: WindowsForms10.window.8.app.0.2bf8098_r13_ad1Position: 150, 21Size: 800, 482Style: 0x16C90000ExStyle: 0x00050101Handle: 0x000E04EA>>>> Control <<<<Class: WindowsForms10.SysListView32.app.0.2bf8098_r13_ad1Instance: 3ClassnameNN: WindowsForms10.SysListView32.app.0.2bf8098_r13_ad13Name: ListView_OriginaisAdvanced (Class): [NAME:ListView_Originais]ID: 67774Text:Position: 218, 331Size: 577, 122ControlClick Coords: 393, 47Style: 0x5601004DExStyle: 0x00000200Handle: 0x000108BE>>>> Mouse <<<<Position: 764, 424Cursor ID: 0Color: 0xF0F0F0>>>> StatusBar <<<<>>>> ToolsBar <<<<>>>> Visible Text <<<<0REGULADOR DE VOLTAGEM 14V 55AFoto2Foto1Código:Grupo:ACMFecharPCUnid.:025,23Total:Valor:ACM-002Qtd:AplicaçõesEquivalências>>>> Hidden Text <<<< Edited May 31, 2012 by GordonFreeman Frabjous Installation
GordonFreeman Posted May 31, 2012 Author Posted May 31, 2012 Try to talk one option that is not equal to each other. I'll test and see what the Frabjous Installation
GordonFreeman Posted May 31, 2012 Author Posted May 31, 2012 So have you tried ControlListView()? MsgBox(0, "", ControlListView( $Title, "", "[NAME:ListView_Originais]", "GetText")) Thankkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkks ;D Frabjous Installation
GordonFreeman Posted May 31, 2012 Author Posted May 31, 2012 The joy was short xD. Now there is another problem. I need bar code (Código de Barras) but not always it is the first, the manufacter code (Código Fabricante) is the first sometimes.See: Frabjous Installation
Spiff59 Posted May 31, 2012 Posted May 31, 2012 (edited) You can use the "GetItemCount" command of ControlListView() to determine the number of rows, if the number of columns vary, you can use the "GetSubItemCount" command. Then you can use for/next loops and "GetText" (with item/subitem options) to read each cell of the listview. I guess for each row, reading subitem 2 "Tipo", would tell you what the value in subitem 0 represents. Edited May 31, 2012 by Spiff59
GordonFreeman Posted May 31, 2012 Author Posted May 31, 2012 (edited) Thanks man! I succeeded to doing this: For $Count = 0 to 10 $BARRAS = ControlListView($TituloJanela, "", "[NAME:ListView_Originais]", "GetText", $Count, 2) If $BARRAS = "Código de Barras" Then $CODIGO_BARRA = ControlListView($TituloJanela, "", "[NAME:ListView_Originais]", "GetText", $Count, 0) ExitLoop EndIf The list only has 30,000 items. Make the hand is bad. =D Edited May 31, 2012 by GordonFreeman Frabjous Installation
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