Re: Pasting into another app
Re: Pasting into another app
- Subject: Re: Pasting into another app
- From: Michael Vannorsdel <email@hidden>
- Date: Fri, 9 Jan 2009 14:34:52 -0700
Checkout CGEventCreateKeyboardEvent and CGEventPost to synthesize
keyboard events. You have to make and post an event for the key down
and then the key up. So: command key down, V key down, V key up,
command key up. There's also CGPostKeyboardEvent which is easier to
use but not recommended for all cases.
On Jan 9, 2009, at 11:55 AM, Scott Ribe wrote:
Thanks. Fortunately, this will only be used on 4 computers in 1
corner of 1
office in the U.S. ;-)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden