Can I control mouse cursor with using MATLAB?

I'd like to control mouse cursor but I'm not sure even I can do it through MATLAB. If you can, will you tell me the functions to do it, examples of using them and MATLAB version contains those functions?

 채택된 답변

Walter Roberson
Walter Roberson 2013년 11월 29일

0 개 추천

If you are moving it for use within MATLAB, you can set the root CurrentPoint property.
If you are moving it for use with other applications, see the Java Robot class.

댓글 수: 3

Kazuma
Kazuma 2013년 11월 29일
thanks for the reply.
I want to control mouse moving and use other applications, so I should use the Java Robot class.
I knew that Java class but if MATLAB could control mouse moving, it would be more convenient for me because I don't have to use other language.
You can call the Java Robot class within MATLAB.
Kazuma
Kazuma 2013년 12월 4일
Thank you so much! I didn't know you can call that class within MATLAB.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Image Analyst
Image Analyst 2013년 11월 29일

0 개 추천

Control what exactly? You can control what it looks like :
set(gcf, 'Pointer', 'fullcrosshair');
set(gcf,'Pointer','watch');
% Change mouse pointer (cursor) to an arrow.
set(gcf,'Pointer','arrow');
and so on.

댓글 수: 1

Kazuma
Kazuma 2013년 11월 29일
thanks for the reply.
sorry for not specific.
I want to control mouse moving, clicking, dragging something like that.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Argument Definitions에 대해 자세히 알아보기

태그

질문:

2013년 11월 29일

댓글:

2013년 12월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by