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
      /    \    /        \  /    \  (*)/ (*)  /    `---------------
    /      `---'          `-'      `-----------'
  • On 23.10.2007, at 21:13, Emanuele ° Vulcano wrote:

    > What if you send a key down event not followed by a key up?

    Well, that would be too easy, and unfortunately did'nt work, either.

    R.

    --
          ---      -  .-.    --        --
              ---    /  \    ----                        tin:b Software
        .-.        /    \  ---  .-.        __o      .-.        (i)
      /  \      /      \    /  \    _`\<,_    /  \  Robert Fischer
      /    \    /        \  /    \  (*)/ (*)  /    `---------------
    /      `---'          `-'      `-----------'
previous month october 2007 next month
MTWTFSS
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Go to today