Can't read from combo box

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
gamesmoke
Newbie
Posts: 1
Joined: Thu Mar 17, 2005 11:44 am

Can't read from combo box

Post by gamesmoke » Thu Mar 17, 2005 11:50 am

Great product, by the way. Just thought I'd say that. Now the fun part, right?, here's my problem ...

I'm trying to automate some setup tasks in UPS Worldship (Windows GUI ... mostly pretty standard). The UI is combersome in different places but one of the bigger problems I have is reading from and selecting combo boxes.

I've tried the ctrl-c and ctrl-v trick with a loop to read through and select but unfortunately it doesn't recognize the content of the combo box. Even though it appears to show as highlighted in the box, a ctrl-c retrieves nothing. I can use the arrow keys to move up and down.

I'm stuck. Any ideas?

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Thu Mar 17, 2005 12:00 pm

Hi,

GetControlText will probably do it. You will need to determine the class name which you can do using the View System Windows tool in the Tools menu.

Failing that a couple of Win32 API function calls may do the trick using LibFunc. But see how you get on with GetControlText first.
MJT Net Support
[email protected]

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts