Getting notifications of events going to other applications, possible?
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.