SImplify 0 Posted September 20, 2004 Hi again, Is there any way to handle Class: TListBox1. I tried controlcommand and could gice the focus to TListBox, but I could't made any selection or so... Does anyone have any idea.... Here's what i have tried: winactivate("classname=TAb_MainForm") sleep(1000) ControlFocus("classname=TAb_MainForm","","TListBox1") sleep(1000) ControlCommand("classname=TAb_MainForm","","TListBox1","SetCurrenSelection", 2) sleep(1000) $s = ControlCommand("classname=TAb_MainForm","","TListBox1","GetCurrentSelection","") msgbox(0,"F",$s) And it always returns number 1. Anyway to handle this one? Thx. Share this post Link to post Share on other sites
sugi 0 Posted September 20, 2004 "SetCurrenSelection"Try using "SetCurrentSelection" instead. Share this post Link to post Share on other sites
SImplify 0 Posted September 20, 2004 Try using "SetCurrentSelection" instead. <{POST_SNAPBACK}> I didn't copy-paste my code, so I propably has one typo. I need to check that tomorrow... Share this post Link to post Share on other sites
SImplify 0 Posted September 20, 2004 I don't think the TListBox behaves as a standard MS listbox does. Lar. <{POST_SNAPBACK}>That's what I think also. If you have any idea how to solve this one, I will be happy to hear that... I can use mouseclick and coordinates to click first row in TListBox and go down by using down arrow. But I would like to hear ideas how I can get the text in lines in TListBox... Cheers Share this post Link to post Share on other sites
SImplify 0 Posted September 20, 2004 try controlsend <{POST_SNAPBACK}>I will. Even that I dont know how it would help me in this case... Cheers Share this post Link to post Share on other sites
emmanuel 0 Posted September 20, 2004 I will. Even that I dont know how it would help me in this case... Cheers <{POST_SNAPBACK}>say the list consists of bmp and jpg, controlsend "j" will select jpg... "I'm not even supposed to be here today!" -Dante (Hicks) Share this post Link to post Share on other sites
SImplify 0 Posted September 21, 2004 say the list consists of bmp and jpg, controlsend "j" will select jpg... <{POST_SNAPBACK}>It's only text... Any ideas? Thx Simplify Share this post Link to post Share on other sites
SImplify 0 Posted September 22, 2004 try ControlSend("title","text","TListBox1","[error1") does that select anything? perhaps ControlFocus it first.. ControlFocus("title","text","TListBox1") Lar. <{POST_SNAPBACK}>Very nice Lar... Thx. Anyway my main problem was how to get that text out of the program. Now I can select one row by ControlSend but now I need to get that error message... Any more good ideas? Simplify Share this post Link to post Share on other sites
ivan 1 Posted March 23, 2006 I'm having the same problem. Ican't figure out how to retreive item info out of TListbox. Any further suggestions to this problem would be greatly appreciated. Think out of the boxGrabber: Yet another WinInfo tool_CSVLib (still alpha)Dynamic html in au3 Share this post Link to post Share on other sites