Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Posting keyboard repeat events



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.