• 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
Posting keyboard repeat events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Posting keyboard repeat events


  • Subject: Posting keyboard repeat events
  • From: Robert Fischer <email@hidden>
  • Date: Tue, 23 Oct 2007 19:47:28 +0200

Hi,

I've run through all archives I could think of, including Google code search, but found no answer...

My application need to send a key hold event to another app, say Front Row, to simulate "Cursor down" repeatedly. With a few quirks, CGEventCreateKeyboardEvent does a key down and a key up reliably, but I am stuck with simulating a "key hold", probably called "autorepeat". There is a key "kCGKeyboardEventAutorepeat" available, but I can't get it to work.

Has anyone accomplished this?

Please note: sending key down/key up very fast is different from holding down a key.


Thank you very much in advance,

Robert

--
     ---      -  .-.     --         --
         ---    /   \     ----                         tin:b Software
   .-.         /     \  ---  .-.        __o      .-.        (i)
  /   \       /       \     /   \     _`\<,_    /   \  Robert Fischer
 /     \     /         \   /     \   (*)/ (*)  /     `---------------
/       `---'           `-'       `-----------'


_______________________________________________

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


  • Prev by Date: Re: Thin Windows
  • Next by Date: autorelease pool
  • Previous by thread: Re: How to have one array controller observing the other
  • Next by thread: Re: Posting keyboard repeat events
  • Index(es):
    • Date
    • Thread