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 › keeping focus on processing
Page Index Toggle Pages: 1
keeping focus on processing (Read 304 times)
keeping focus on processing
Nov 25th, 2008, 4:24pm
 
I am using java's robot class to move the mouse around. I use processing to take the arrow keys as input and then move the cursor . The problem is that when i click outside of the processing window it looses focus and can no longer recieve the input. what i want is just for processing to stay in the background and accept keyboard input and turn it into mouse movements. Is there a way to make processing capture the keyboard inputs even when it is minimized?
Re: keeping focus on processing
Reply #1 - Nov 25th, 2008, 5:35pm
 
That's not really possible with Processing.
But a workaround is using the Present-mode.
That way, the user can't click outside of the applet.
Re: keeping focus on processing
Reply #2 - Nov 25th, 2008, 10:00pm
 
well is there a way to regain focus after it is lost. if so i could then move the cursor and when it clicks it could open a program from a desktop link. my sketch then loses focus bust if i can get focus back to the sketch i can move the mouse again with the keyboard.
Page Index Toggle Pages: 1