MATLAB Answers

Ara
0

Is it possible to get current of mouse position out of GUI scope?

Asked by Ara
on 7 Aug 2014
Latest activity Edited by Ara
on 7 Aug 2014
I want to find position of mouse in anywhere of screen. I only got position x,y in GUI boundary.
Is it possible to do it? and how to do?
Thank you :))

  0 Comments

Sign in to comment.

1 Answer

Answer by Friedrich
on 7 Aug 2014
 Accepted Answer

Hi,
try
>> get(0,'PointerLocation')

  2 Comments

Thank you very much :D
Ara
2014 年 8 月 7 日
May I ask you one more question? It cannot point or click mouse when I use this code with GUI. How to fix it?
thank you

Sign in to comment.