How can I access menu features on a program that runs in MATLAB from another script?
Afficher commentaires plus anciens
I'm trying to create a script that will access menu features on a program that runs in MATLAB. How do I access the different menu options for my script?
7 commentaires
Andrew Newell
le 27 Jan 2011
Rob, it would help if you said what the program is and what you mean by a menu feature (do you mean an input argument to the function?).
rob wise
le 27 Jan 2011
Walter Roberson
le 27 Jan 2011
Do you have access to the source code for gaitrec ?
rob wise
le 27 Jan 2011
Walter Roberson
le 27 Jan 2011
With source, I would suggest looking at the callback for that menu item, and calling it yourself. If it involves a routine that does not have its own .m file and thus cannot be called by name, then you can findobj() the menu control and get() the Callback property in order to retrieve the handle you would need.
Zain Mecklai
le 27 Jan 2011
Are you trying to write automated tests for your GUI or are you simply trying to drive the UI without having a user drive it for the functionality?
rob wise
le 28 Jan 2011
Réponses (1)
Walter Roberson
le 27 Jan 2011
0 votes
Java Robot class.
Catégories
En savoir plus sur Debugging and Analysis dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!