• 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
Re: CGPostKeyboardEvent strangeness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >CGPostKeyboardEvent strangeness (From: Salánki Benjámin <email@hidden>)

  • Prev by Date: Re: Launching System Prefs
  • Next by Date: Re: 1 controller, 1 nib, 2 windows?
  • Previous by thread: CGPostKeyboardEvent strangeness
  • Next by thread: Re: CGPostKeyboardEvent strangeness
  • Index(es):
    • Date
    • Thread