On Mar 22, 2007, at 03:30 UTC, Dr Gerard Hammond wrote:

> Does anybody have a tested and working solution for detecting the 
> CapsLock status on MacOS X?
> 
> Searching the archives I found this suggestion:
> 
>    #if TargetMacOS then
>      return Keyboard.AsyncKeyDown(&h39)
>    #endif
> 
> but this didn't work for me (on my MacBookPro)

No, that would only return whether the Caps Lock key is currently down;
not whether you're in a caps-locked state.

Listing 6-2 at
<http://developer.apple.com/documentation/Carbon/Conceptual/Carbon_Event_Manager/Tasks/chapter_3_section_10.html>
looks like it may be useful.  But you'd need to first get an
appropriate CarbonEvent.  Probably Charles's book can be helpful there.

HTH,
- Joe

--
Joe Strout -- [EMAIL PROTECTED]
Verified Express, LLC     "Making the Internet a Better Place"
http://www.verex.com/

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to