[Q] How can I receive notifications from menu item selections systemwide?
[Q] How can I receive notifications from menu item selections systemwide?
- Subject: [Q] How can I receive notifications from menu item selections systemwide?
- From: Maurice Volaski <email@hidden>
- Date: Fri, 18 Feb 2005 02:44:28 -0500
Title: [Q] How can I receive notifications from menu item selections systemwide?
I want to be notified whenever there is a menu selection made in every application system wide.
I try
static AXUIElementRef gAXUIOSElementRef = 0;
static AXObserverRef gAXObserver = 0;
gAXUIOSElementRef = AXUIElementCreateSystemWide();
OSErr theError = GetCurrentProcess (&theProcessID);
theError = GetProcessPID(&theProcessID,&thePID);
AXError theAXError = AXObserverCreate ( thePID, MonitorMenuChanges, &gAXObserver);
theAXError = AXObserverAddNotification (gAXObserver, gAXUIOSElementRef, kAXMenuItemSelectedNotification, nil);
theAXError is –25202.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden