• 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: receiving global keyDown events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: receiving global keyDown events


  • Subject: Re: receiving global keyDown events
  • From: Ryan Poling <email@hidden>
  • Date: Wed, 29 Jun 2005 10:24:34 -0700

Okay, you've convinced me - I'll give Apple's built in system another chance.

Thanks..

-Ryan

On Jun 29, 2005, at 9:55 AM, Daniel Jalkut wrote:

Definitely keep your ears open for better suggestions, but I would assume that for something like this in general you'd need to write something like a kernel extension (or perhaps a replacement keyboard device driver). Sorry to break the bad news :)

It is probably worth looking into whether there's anyway to get Apple's key clicking to work without slow keys. For what it's worth, I type pretty fast and as a test right now I'm running with Slow Keys on and key clicks, but with the acceptance delay all the way to short. It's only missing a stroke rarely, and this is at consistently 100WPM+ speed. It would probably be acceptable for most users' typing speeds, and maybe the delay can be configured even shorter programatically?

Good luck,
Daniel

On Jun 29, 2005, at 9:37 AM, Ryan Poling wrote:


Thanks guys, but I don't think that will work. I want to know when *any* key on the keyboard is pressed - I don't care what the keys are, I just need the timing. The purpose of this if you're curious is to have the program make a key click sound when keys are pressed. OS X has something like this built in, but you can only turn it on when "slow keys" are enabled under the Universal Access system preference pane. I want click sounds all the time but without slow keys.

Any other ideas?

Thanks,

-Ryan


On Jun 28, 2005, at 4:27 PM, Daniel Jalkut wrote:


Register for the specific keystrokes you are interested in with RegisterEventHotKey. Search the archives for that function name for more information.

Daniel



On Jun 29, 2005, at 2:05 AM, Nathan Day wrote:



What you want is Hot Keys, you can get this through carbon or there are at least two wrapper classes including the one on my web site.

On 29/06/2005, at 3:07 AM, Ryan Poling wrote:



I'm trying to write a little Cocoa app which will be able to see all keyDown events - even when it's not in the foreground. I've been playing around with first creating a global floating window, and although I've managed to do this, I only receive keyDown events when my window is in the front.



Nathan Day email@hidden http://homepage.mac.com/nathan_day/




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
sweater.com


This email sent to email@hidden





_______________________________________________ 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: 
 >receiving global keyDown events (From: Ryan Poling <email@hidden>)
 >Re: receiving global keyDown events (From: Nathan Day <email@hidden>)
 >Re: receiving global keyDown events (From: Ryan Poling <email@hidden>)
 >Re: receiving global keyDown events (From: Daniel Jalkut <email@hidden>)

  • Prev by Date: (no subject)
  • Next by Date: Re: (no subject)
  • Previous by thread: Re: receiving global keyDown events
  • Next by thread: Re: receiving global keyDown events
  • Index(es):
    • Date
    • Thread