Re: CGPostKeyboardEvent strangeness
Re: CGPostKeyboardEvent strangeness
- Subject: Re: CGPostKeyboardEvent strangeness
- From: David Niemeijer <email@hidden>
- Date: Thu, 11 Nov 2004 19:57:43 +0100
Hi,
At 13:56 +0100 11/11/04, Salánki Benjámin wrote:
I have hotkey support in my app using the carbon
hotkey APIs, which work like a charm. I want to
call a method when a given hotkey combo is
pressed, which works as well.
I have a method that uses CGPostKeyboardEvent
functions to post virtual keydown events which
works great as well.
The problem arises when I try to mix these two
functions, so when I press my hotkey combo I
want to use the CGPostKeyboardEvent functions.
But here's what happens: I press my key combo
and everything works fine. I press it again, and
nothing happens!! I press it a third time, works
like a charm, press it a fourth time, nothing
again, and so on!!!
Have you tried calling
CGSetLocalEventsSuppressionInterval(0.0); at the
beginning of your application? For more info on
this function see CGRemoteOperation.h
David.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden