Posting keyboard repeat events
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