Use function to do a sequence of Java.Robot KeyEvents
Show older comments
Hello,
My question is regarding making a matlab function that when called performs a certain sequenece of key commands that I already have established in a script. I am going to be using this sequence twice, so I figured I could use a function, but I am unsure what input/output arguments I would need to use because it doesn't really use any variables. My goadl is to try and reduce the clutter of code in my script.
Is there a way to do this, or possibly try a different approach?
1 Comment
Jan
on 31 Oct 2012
What does "perform a certain key commands" explicitly mean?
Answers (1)
Jan
on 31 Oct 2012
0 votes
Do I understand correctly: You have some lines of code and want to run them twice? Then join them in a script or a function without inputs and outputs.
What is the connection to the Java Robot?
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!