FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Topics & Contributions
   Responsive Form, Games
(Moderator: REAS)
   Setting the Mouse location
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Setting the Mouse location  (Read 2722 times)
hybrid-halo


Setting the Mouse location
« on: Dec 2nd, 2004, 4:08am »

Hey guys, I'm sure I'll kick myself about this later on but I'm currently experiencing a 0% brain cell efficiency.
 
I'm writing code that will require resetting the mouse position when it reaches a certain Y value. How do I....
 
A) query the mouse location (so that it's a named integer);
 
and B) Reset the mouse's onscreen position, as a named integer.
 
Thanks guys.
« Last Edit: Dec 2nd, 2004, 4:09am by hybrid-halo »  
mKoser

WWW Email
Re: Setting the Mouse location
« Reply #1 on: Dec 8th, 2004, 1:05pm »

take a look here:
http://processing.org/discourse/yabb/board_Syntax_action_displa_y_num_1050551885.html
 
i don't think it'll work in a browser, and when running from within processing, you need to have your processing-window placed on the same spot every time (since the AWT Robot talks to the system, not the applet).
 
I've used this in an exhibition and it worked just fine.
 
Good luck!
+ Mikkel
 

mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
Pages: 1 

« Previous topic | Next topic »