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 Comments
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/710173-matlab-script-saving-mouse-click-location#comment_1247983
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/710173-matlab-script-saving-mouse-click-location#comment_1247983
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/710173-matlab-script-saving-mouse-click-location#comment_1247993
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/710173-matlab-script-saving-mouse-click-location#comment_1247993
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/710173-matlab-script-saving-mouse-click-location#comment_1250668
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/710173-matlab-script-saving-mouse-click-location#comment_1250668
Sign in to comment.