Jump to content

Selecting text in a dropdow, no controlID, etc.


Recommended Posts

I would like to intelligently select an option from a dropdown, but I am unsure of how to proceed. Using Window Info, the dropdown doesn't have a controlID, which I assumed I could just leave as "" but still nothing happens when I try to select a value using ControlCommand.

dropdown.thumb.png.ebabe5618d72d7eb05436c6b4f79dd5f.png

I thought something like this would work: 

ControlCommand("Dorico","","","SelectString","-2328/12000")

But nothing happens. If I understand correctly, ControlCommand will not necessarily make the mouse move, but even when I then close the window, I see that the value was not selected. To make matters more complicated, the dropdown menu has many values in it beyond what is seen on the screen (i.e. must be scrolled). How might I be able to search these to select values I want from the dropdown that I have, e.g. stored in an array? 

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...