INPUTEMU emulates user inputs via keyboard and mouse.
For example, executing the following line in the Matlab command window
'right_down',;'right_up' }') % <= notice the transpose!
yields in "Hello World" typed and executed in MATLAB command window (followed by an obvious error message) and right mouse click menu. For the detailed instructions, please run 'help inputemu'.
This function is a successor to my earlier submission JMOUSEEMU (linked below) with several notable changes:
* Added keyboard input support
* Changed input argument order
* Multiple-command CMDS input argument transposed (i.e., commands defined in columns not in rows)
* Removed support for Matlab HG specification
Also, as a future enhancement, I am planning to support non-US keyboards. The current version most likely produces incorrect characters for many non-alphabet characters with non-US keyboards. To improve this, please post here or contact me directly with feedback (as I only own QWERTY US keyboards)!