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

guimouseposition;windowbuttondownfcnwindowbuttonmotionfcn

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 :))

Best Answer

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