Sam137 Posted August 8, 2011 Posted August 8, 2011 I have a window which is a listbox with some texts on that, when i try to identify the text using the "AutoIT window info" tool, the text is showing as " " eventhough there are more than 10 options. Can you please let me know what can be done? I have attached the file for ref.
JohnOne Posted August 8, 2011 Posted August 8, 2011 App written in Delphi? TListBox seems familiar AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Sam137 Posted August 8, 2011 Author Posted August 8, 2011 I dont know. Its already existing application i am using.
JohnOne Posted August 8, 2011 Posted August 8, 2011 Autoit have issues sometimes with not native windows controls, that looks like one of them. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Sam137 Posted August 15, 2011 Author Posted August 15, 2011 Can anyone reply to this. As i am suffering for the past 2 weeks... Your help is much appreciated.
Bert Posted August 15, 2011 Posted August 15, 2011 can you show the summary tab? You show the control tab. That may help The Vollatran project My blog: http://www.vollysinterestingshit.com/
Bert Posted August 15, 2011 Posted August 15, 2011 I was afraid of that. That window is being difficult. Apparently it is written in something that isn't windows standard controls The Vollatran project My blog: http://www.vollysinterestingshit.com/
rover Posted August 16, 2011 Posted August 16, 2011 (edited) I have a window which is a listbox with some texts on that, when i try to identify the text using the "AutoIT window info" tool, the text is showing as " " eventhough there are more than 10 options. Can you please let me know what can be done? I have attached the file for ref. I have tested this with four old apps with a Delphi TListBox class control (Reshacker etc.), however, YMMV... Check that the TITLE and CLASS text are correct, or preferably, copy the window/control text from the au3info tool to the clipboard by double clicking the title/class/advanced mode text. Run this with the Report Access Definitions window open. You'll need to be running SciTE for the consolewrites. Good Luck #Include <GuiListBox.au3> Global $sWin = "[TITLE:Report Access Definitions; CLASS:TfrmRad]" Global $sCtrl = "[CLASS:TListBox; INSTANCE:1]" Global $sTxtBuf, $sTxt Global $hParent = WinGetHandle($sWin) ConsoleWrite('+$hParent = ' & $hParent & @CRLF) If IsHWnd($hParent) = 0 Then Exit MsgBox(4096, "TfrmRad", "Error: Window handle not returned") Global $hTListBox = ControlGetHandle($hParent, "", $sCtrl) ConsoleWrite('+$hTListBox = ' & $hTListBox & @CRLF) If IsHWnd($hParent) = 0 Then Exit MsgBox(4096, "TListBox", "Error: Control handle not returned") For $i = 0 To _GUICtrlListBox_GetCount($hTListBox) -1 $sTxt = "Index[" & $i & "] Text: " & _GUICtrlListBox_GetText($hTListBox, $i) $sTxtBuf &= $sTxt & @CRLF ConsoleWrite('-' & $sTxt & @CRLF) Next MsgBox(4096, "Report Access Definitions", $sTxtBuf) Edited August 16, 2011 by rover Sam137 1 I see fascists...
Sam137 Posted September 9, 2011 Author Posted September 9, 2011 Thanks very much Rover.... It worked... I appreciate your timely help...
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