Sign in to follow this  
Followers 0
LL77ee

Selecting one of multiple Dropdown Menus [Problem]

5 posts in this topic

Hello,

I am both new to AutoIt and to this forum.

Unfortunately, I could not find an answer or a solution to my problem, which is choosing something from a selected dropdown menu.

In detail, I have a page I wish to navigate and from which I wish to download a programme. My problem is that there are two, sometimes more, dropdown menus that need to be set in order to commence with the download.

This is the script I have managed so far, which was not very successful I am afraid;

$my_url = "http://xxxxx"

ShellExecute ( "C:Program Files (x86)Mozilla Firefoxfirefox.exe", $my_url )

ControlCommand('[CLASS:WindowsForms10.COMBOBOX.app.0.2004eee; INSTANCE:3]','','controlID',"SelectString", xxxxx)

I have been watching the tutorials, which are immensely helpful, and I will continue to study them and this page. However, if anyone has an idea on how to solve this problem, I thank you in advance.

Best,

LL77

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Click the ControlCommand function on the next line to open the help file for it...you are missing the window identifier, optional window text, and the control identifier should be the third variable:

ControlCommand

Also, I forget if those window form controls update to a new name each time you launch the app...you might need to identify it through the REGEXPCLASS: search 'controls' in the help file.

Edited by jdelaney

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

There are UDFs for controlling IE, Firefox, and Opera. Why aren't you using one of those, which would likely be easier to implement and more reliable?

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Agreed, Danp2, but because the control has an actual class for a windows form, it's based on an application.  I believe he is working on two windows....or could be that he is just really confused :)...

LL77ee, please send a screen shot, or the output of the autoit window info tool (summary tab), where the focus is on the control you want to manipulate.

Edited by jdelaney

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

Thank you all. I will try them tomorrow and get back to you. 

Thanks again. :bye:

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
Sign in to follow this  
Followers 0