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