Jump to content
kmaclamore

Selecting Options in Cascading Combo Boxes

Recommended Posts

kmaclamore

Hello!

     I am trying to automate the selecting of combo box choices in a 3rd party app. When an option is chosen for combo box 1 by a user, combo box 2 loads a set of choices. 

 

Problem: 

     When AutoIt selects an option for combo box 1, combo box 2 options are not loaded.

I am using _GUICtrlComboBox_SetCurSel

I am thinking that the 3rd party app may be dependent on mouse clicks, but I'm not sure how to mouse-click an option from a dropdown menu using AutoIt.

 

Any help or thoughts would be much appreciated!

 

Share this post


Link to post
Share on other sites
CodeTinkerer

Ive had luck in the past with 3rd party apps and mouse clicking buttons. I got around it with ControlClick then MouseClick on top of that. Perpaps try ControlClick on the combobox, then _GUICtrlComboBox_SetCurSel? Understandably the automation speed might not be quite as fast but.... thats my thoughts.

Share this post


Link to post
Share on other sites
JLogan3o13

How about sharing what the 3rd party app is, or a screen shot? Also what do you see regarding the combo boxes when you use the AutoIt Window Info Tool?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
kmaclamore

Ive had luck in the past with 3rd party apps and mouse clicking buttons. I got around it with ControlClick then MouseClick on top of that. Perpaps try ControlClick on the combobox, then _GUICtrlComboBox_SetCurSel? Understandably the automation speed might not be quite as fast but.... thats my thoughts.

​No luck - good suggestion though! The ControlClick successfully gets the drop-down menu, but then _GuiCtrlComboBox_SetCurSel doesn't work. If only there was a way to click options in the drop-down... 

How about sharing what the 3rd party app is, or a screen shot? Also what do you see regarding the combo boxes when you use the AutoIt Window Info Tool?

The program gets data (perhaps the second combo box data) from somewhere on the network. Both combo boxes are of class: WindowsForms10.COMBOBOX.app.0.2bf8098_r13. Thanks for your thoughts on this problem given the little bit of information. 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×