How can I access menu features on a program that runs in MATLAB from another script?
Show older comments
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 Comments
Andrew Newell
on 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
on 27 Jan 2011
Walter Roberson
on 27 Jan 2011
Do you have access to the source code for gaitrec ?
rob wise
on 27 Jan 2011
Walter Roberson
on 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
on 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
on 28 Jan 2011
Answers (1)
Walter Roberson
on 27 Jan 2011
0 votes
Java Robot class.
Categories
Find more on Database Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!