Re: Pasting into another app
Re: Pasting into another app
- Subject: Re: Pasting into another app
- From: Scott Ribe <email@hidden>
- Date: Fri, 09 Jan 2009 16:35:02 -0700
- Thread-topic: Pasting into another app
Michael said:
> Checkout CGEventCreateKeyboardEvent and CGEventPost
That's what I found, and got it working.
> So: command key down, V key down, V key up,
> command key up.
FYI, although that's what the docs say, it doesn't work. You have to set the
command key flag on the V key down event, then V key up--no command key down
& up events. I targeted a couple of different apps, same thing with both.
Dave said:
> ...you don't have to post four.
Not just don't have to--that doesn't even work. (The example in the docs
puts in a lower-case z, not upper-case.)
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
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