• 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: 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


  • Follow-Ups:
    • Re: Pasting into another app
      • From: Scott Ribe <email@hidden>
    • Re: Pasting into another app
      • From: Dave DeLong <email@hidden>
References: 
 >Re: Pasting into another app (From: Scott Ribe <email@hidden>)

  • Prev by Date: Thanks
  • Next by Date: Re: Pasting into another app
  • Previous by thread: Re: Pasting into another app
  • Next by thread: Re: Pasting into another app
  • Index(es):
    • Date
    • Thread