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.
Walter Roberson
Walter Roberson 2013 年 11 月 29 日
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 ExchangeMigrate GUIDE Apps についてさらに検索

タグ

質問済み:

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