control mouse clicking

how could we control mouse clicking operation using matlab in xp ?

回答(2 个)

Matt Tearle
Matt Tearle 2011-3-1

0 个投票

ButtonDownFcn? ginput? Please explain what you mean by "control mouse clicking operation". What exactly do you want to do?
Walter Roberson
Walter Roberson 2011-3-1

0 个投票

I am going to take a guess that you want the Java Robot class. This would apply if you want to use Matlab to enter a mouse click on behalf of the user, such as to automate interaction with a different program.

6 个评论

Wow. I bow before your powers of ESP!
Of course, with such a vague problem description Walter is just as likely to be miles away from what the OP meant. The joys of question deciphering continue....
Ignore Fig's heresy, Walter. *I* am a true believer in your powers. Speaking of which, I have this code that isn't working... say the word, Oh Mighty One, and it shall be debugged!
OP>> I have a question
Walter>> 42
OP>> Thank you
OP>> I have a question
Walter>> The answer to the question you _think_ you are asking is 42, but if you do a substitution of variables in section 3.10.9 of this reference document according to the definition of this wikipedia document, and take the limit of the derived equation, we can see that the actual value could be anywhere up to 3^^^^3 and you do not have any information to the contrary, you cannot distinguish these days. If, however, you alter your mental question to use "and" instead of "or", then section 9.14.5 of this document shows how in your likely circumstances that the actual answer is 6.
OP>> [Accepted Answer] Thank you but it turned out I needed num2str(6) because of something I didn't think of until after you showed me I was calculating the wrong thing.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Debugging and Analysis 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by