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 protected]
http://www.killerbytes.com/
(303) 722-0567 voice


_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to