Paul and Eiko,
I just checked OSXvnc's source code. Their code led me to the right place, but it's fairly complex for a beginner (like myself) to learn how to post keyboard events (generate keystrokes or simulating keyboard input). The functions needed for this are in Quartz / Core Graphics. OSXvnc still uses CGPostKeyboardEvent, which is now deprecated in 10.6. Apple suggests CGEventCreateKeyboardEvent as a substitute. Check Developer Documentation for more information. There's a code snippet in CGEventCreateKeyboardEvent's reference that makes things very clear. Cheers, Flavio On 19/05/2010, at 16:53, Paul Sanders wrote: > > I am interested in simulating text input (maybe via generating keystrokes), > > but never found an example for that. > > Well VNC must simulate keystrokes somewhere along the line, although finding > it may take a bit of digging around in the sources. As you say, mapping all > the various keycodes is likely to be painful. > > Paul Sanders. > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com