• 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
Getting notifications of events going to other applications, possible?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting notifications of events going to other applications, possible?


  • Subject: Getting notifications of events going to other applications, possible?
  • From: Charles Crowley <email@hidden>
  • Date: Wed, 5 Nov 2003 22:23:43 -0700

I am writing a program for a friend that displays a keyboard and shows when keys are pressed, kind of like Key Caps except it needs to show key-presses even when it is not the key window. He wants it to show mouse button presses and mouse scroll-wheel actions also.

I found the Carbon functions GetKeys and Button which allow me to do it using polling (every 1/30 second) but Button is deprecated and only tells about the left mouse button anyway, and mouse scroll-wheel activity can only be captured with events, not state-based polling.

Is there a way for an application to receive notifications of all OS events, even ones going to other applications, and when it is not the key window?

Thanks,
Charlie Crowley
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Multiple Views in a Single Drawer??
  • Next by Date: question about compatibility
  • Previous by thread: Re: Multiple Views in a Single Drawer??
  • Next by thread: question about compatibility
  • Index(es):
    • Date
    • Thread