SImplify Posted September 20, 2004 Share 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. Link to comment Share on other sites More sharing options...
sugi Posted September 20, 2004 Share Posted September 20, 2004 "SetCurrenSelection"Try using "SetCurrentSelection" instead. Link to comment Share on other sites More sharing options...
SImplify Posted September 20, 2004 Author Share 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... Link to comment Share on other sites More sharing options...
SImplify Posted September 20, 2004 Author Share 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 Link to comment Share on other sites More sharing options...
SImplify Posted September 20, 2004 Author Share Posted September 20, 2004 try controlsend <{POST_SNAPBACK}>I will. Even that I dont know how it would help me in this case... Cheers Link to comment Share on other sites More sharing options...
emmanuel Posted September 20, 2004 Share 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) Link to comment Share on other sites More sharing options...
SImplify Posted September 21, 2004 Author Share 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 Link to comment Share on other sites More sharing options...
SImplify Posted September 22, 2004 Author Share 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 Link to comment Share on other sites More sharing options...
ivan Posted March 23, 2006 Share 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 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