Choose item in drop down box

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

Rajshekar
Rajshekar 2013년 4월 25일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Sean de Wolski
Sean de Wolski 2012년 10월 29일

0 개 추천

Since you know which item to select, couldn't you just set the 'Value' programatically?

카테고리

도움말 센터File Exchange에서 Desktop에 대해 자세히 알아보기

질문:

2012년 10월 29일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by