Matlab script saving mouse click location
古いコメントを表示
Hello,I have started using this type of scripting to control mouse clicking automatickly.
I want to mouse click on some location i choose randomly and the matlab needs to store(i move it somewhere else) the location wait couple of seconds and move the mouse 100 to the left of that stored location.
Is it possible to store a clicked mouse location while probram is running?
Thanks.
import java.awt.Robot;
import java.awt.event.*;
robot=Robot();
robot.mouseMove(500,500);
ScreenDimensions=get(0,'screensize')
3 件のコメント
Timo Dietz
2021 年 1 月 6 日
Could you please add some information? It's not clear why a storing should be needed. During the execution you have all data available, anyway.
fima v
2021 年 1 月 6 日
Jan
2021 年 1 月 7 日
Do you want to do this inside a Matlab window?
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Descriptive Statistics and Visualization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!