フィルターのクリア

getting info about the pointer movement

2 ビュー (過去 30 日間)
alex
alex 2012 年 1 月 17 日
a code that shows me the coordinates of the pixel where the I want to know where the pointer of the mouse is, I have written a code that shows me the coordinates of the pointer every x seconds but i want it to show me the coordinates only when i press the right\left mouse buttons, and not every 0.1 sec(e.g)
the code i have-
import java.awt.*;
import java.awt.event.*;
mouse = Robot;
for i = 1:500
get(0,'PointerLocation')
pause(0.1);
end

回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by