Hi,
I'm attempting to automate a UI with multiple comboboxes - the problem is that using FormFindChildClassName (which I'm stuck with on the Windows Display Porperties dialog) will just find the first one - using FormFindChildClassName(hWnd, 'ComboBox #1') and FormFindChildClassName(hWnd, 'ComboBox #2') makes no difference!
To put it into context I'm automating the Display and Color Quality comboboxes on the Settings property page of the Desktop Properties dialog.
Any assistance appreciated!
Thanks,
James
Multiple controls of same class type
-
- Posts: 21
- Joined: Wed Dec 06, 2006 6:24 pm
- Location: UK
- Contact:
You should use the instance number as the third parameter and not in the class name:
Jenö Herget
Ranorex Team
Code: Select all
# Find the second combo box
FormFindChildClassName(hWnd, 'ComboBox', 2)
I think it would be better to use the FrmFindChildControlId function, the ControlId is a unique identifier in this dialog.To put it into context I'm automating the Display and Color Quality comboboxes on the Settings property page of the Desktop Properties dialog.
Jenö Herget
Ranorex Team