Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Sparkly

macrumors newbie
Original poster
Jan 23, 2011
2
0
This thread is about an app I am currently writing a proof of concept for. It's up in the air whether this will materialize so I don't have a definite name for it yet.

My first question for the forum is whether the Mac API contains C/C++ functions for programmatically generating key press and mouse events? This would be used for testing. This would not be run from a script; the app itself would trigger the events.
 
Looks like CGEventCreateMouseEvent and CGEventCreateKeyboardEvent may work.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.