Getting values/count from combobox in application?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Guest

Getting values/count from combobox in application?

Post by Guest » Mon Oct 20, 2003 6:06 pm

I am wanting to get the list of values in a combobox in a certain application. I need to know how many values are in this combobox as well. Is there an easy way to do this with MacroScheduler?

I can't figure out how to get out values from a combobox. Maybe with VBScript?

Any help would be appreciated.
Thanks!

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 » Mon Oct 20, 2003 7:25 pm

A few questions:

What language is the "certain application" written in?

Is it compiled?

Is it and *.asp web page?

Is it on an HTML page or in a Java/Perl or some other script?

Do you have access to the source code?
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

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 » Mon Oct 20, 2003 7:33 pm

Without needing source code or using VB, you might try this. No code here, just a concept to approach the problem:

:idea: You could create a loop that goes to the combo box, selects the top value, copies to clipboard, increase a counter. Use PutClipboard to assign the value to a varialble (that could also include the counter value).

Return to combo box, use the counter to control using the down arrow to get each of the next values and increase the counter each time.

Loop like that until the last value = the previous value, then you know you have seen them all. Remove the last value and reduce the counter by one since this last value is a duplicate.

You will now have group of varialbles, and the counter will tell you how many.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Guest

Thanks!

Post by Guest » Mon Oct 20, 2003 9:17 pm

I ended up using a counter and comparing the text to see if and when the values in the combobox were the same.

Thanks for the quick replies!

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