I\'m writing an application for Mac OS X 10.6 and later in C++. One part of the application needs to simulate mouse movement and mouse clicks. I do this currently by posting
Use OSXVnc. I see they use CGPostMouseEvent() instead of CGPostEvent().
CGPostMouseEvent()
CGPostEvent()