How to read data from a combobox

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
abackus3rd
Newbie
Posts: 1
Joined: Tue Mar 01, 2005 6:41 pm

How to read data from a combobox

Post by abackus3rd » Thu Mar 10, 2005 7:34 pm

What script command is used to evaluate the contents of a combobox?

I need to simulate clicking the down arrow on a combobox and evaluate its content until I find the correct item in the list.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu Mar 10, 2005 7:54 pm

You can copy the selection to your clipboard and compare it to a set of know values. You may need to loop a few times until you get a match.

After the combo box selection is made, highlight it, use CTL-C to copy to Clipboard, then use GetClipboard to compare it to your list.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

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