Re: [Q] How can I receive notifications from menu item selections systemwide?
Re: [Q] How can I receive notifications from menu item selections systemwide?
- Subject: Re: [Q] How can I receive notifications from menu item selections systemwide?
- From: Mike Engber <email@hidden>
- Date: Fri, 18 Feb 2005 09:33:52 -0800
The system wide ui element doesn't support any notifications.
You'll have to register with each app individually.
-ME
On Feb 17, 2005, at 11:44 PM, Maurice Volaski wrote:
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:
40apple.com
This email sent to email@hidden
_______________________________________________
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