How can I access menu features on a program that runs in MATLAB from another script?
Mostrar comentarios más antiguos
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 comentarios
Andrew Newell
el 27 de En. de 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
el 27 de En. de 2011
Walter Roberson
el 27 de En. de 2011
Do you have access to the source code for gaitrec ?
rob wise
el 27 de En. de 2011
Walter Roberson
el 27 de En. de 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
el 27 de En. de 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
el 28 de En. de 2011
Respuestas (1)
Walter Roberson
el 27 de En. de 2011
0 votos
Java Robot class.
Categorías
Más información sobre Database Toolbox en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!