• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Pasting into another app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Pasting into another app (From: Michael Vannorsdel <email@hidden>)

  • Prev by Date: Re: NSTextView bindings; value path
  • Next by Date: Re: [commentary] The value of warnings [was: Re: A Data Object in Cocoa]
  • Previous by thread: Re: Pasting into another app
  • Next by thread: Bonjour server with multiple clients
  • Index(es):
    • Date
    • Thread