We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › get coordinates of mouse in the screen
Page Index Toggle Pages: 1
get coordinates of mouse in the screen (Read 288 times)
get coordinates of mouse in the screen
Dec 17th, 2008, 6:38pm
 
Hello all!

Is it possible to know the coordinates of the mouse pointer in the screen and not in the Processing scene?

mouseX and mouseY give me the coordinates of the mouse pointer in the Processing scene.

I'm trying to use the Robot class to control the mouse movement but I can't figure out how can I get the position (coordinates) of the mouse in the screen.

Any help on this subject?

Thank you very much in advance!

Best regards!
Re: get coordinates of mouse in the screen
Reply #1 - Dec 17th, 2008, 9:39pm
 
This isnt a perfect answer, but it should point you in the right way!

http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Programs;action=display;num=1221148694

Hope that helps.

[edit]I found something better. Have a look at this link. Perhaps it will be of use?
http://processing.org/discourse/yabb/YaBB.cgi?board=Contributions_Beyond;action=display;num=1102415302
Page Index Toggle Pages: 1