How can I access menu features on a program that runs in MATLAB from another script?
Ältere Kommentare anzeigen
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 Kommentare
Andrew Newell
am 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
am 27 Jan. 2011
Walter Roberson
am 27 Jan. 2011
Do you have access to the source code for gaitrec ?
rob wise
am 27 Jan. 2011
Walter Roberson
am 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
am 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
am 28 Jan. 2011
Antworten (1)
Walter Roberson
am 27 Jan. 2011
0 Stimmen
Java Robot class.
Kategorien
Mehr zu Database Toolbox finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!