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!
Getting values/count from combobox in application?
Moderators: JRL, Dorian (MJT support)
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Without needing source code or using VB, you might try this. No code here, just a concept to approach the problem:
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.

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!
Bob
A humble man and PROUD of it!