Choose item in drop down box
Mostrar comentarios más antiguos
Hello,
I have an application on my computer that I am able to slightly automate, but I am having some trouble with picking items from drop menus.
I can control the program using java robot functionality (i.e. up and down arrow keys in the menus, and tab key to cycle through different boxes etc) but I have drop menus that I want to be selected based on a value in an array.
The order of each drop menu is known and if I specify what number in that order the item I want to be selected is, would I be able to select it?
I would like to make a robust solution to this, because the starting postion of each drop menu will most likely change for different users.
I don't have any code and I am kind of stuck, so any help is appreciated.
Thank you.
1 comentario
Rajshekar
el 25 de Abr. de 2013
Hi, Sorry not an answer. But a clarification. I am doing the same sort of thing.But using mouse clicks of java robot. Experiencing problem between clicks. First click(right click) works and brings down the pop up menu.When tried to reposition and select an item by left click, the menu already got disappeared.
As you are using the up and down keys for this purpose, is it not the same. Do you have any idea on how to solve my issue.
Respuestas (1)
Sean de Wolski
el 29 de Oct. de 2012
0 votos
Since you know which item to select, couldn't you just set the 'Value' programatically?
Categorías
Más información sobre Desktop en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!