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 & HelpSyntax Questions › simulating mouse clicks
Page Index Toggle Pages: 1
simulating mouse clicks (Read 726 times)
simulating mouse clicks
Dec 22nd, 2006, 7:57am
 
Hi,

I am pretty new to processing. I was wondering if there is a way to simulate mouse clicks, and send these events to the OS, such that it would be treated as if the user actually clicked the mouse?

Thanks in advance

Mooshir
Re: simulating mouse clicks
Reply #1 - Dec 22nd, 2006, 10:24am
 
try java's robot class. it's evil, it's black magic but it does all you want.

java.awt.Robot

Re: simulating mouse clicks
Reply #2 - Dec 26th, 2006, 1:54pm
 
Hey,

Thanks a lot, got it working !!!

Mooshir
Page Index Toggle Pages: 1