Re: Globally monitor and intercept scroll lock (F14) key presses
Re: Globally monitor and intercept scroll lock (F14) key presses
- Subject: Re: Globally monitor and intercept scroll lock (F14) key presses
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 15 Apr 2013 09:52:11 -0400
Nick,
AXMakeProcessTrusted works perfectly well on 10.8.
To prove it to yourself, download the free 30-day trial version of my UI Browser application at < http://pfiddlesoft.com/uibrowser>. Turn off the 'Enable access for assistive devices' setting in System Preferences before you launch UI Browser. Then, in UI Browser, check the Enable Access for UI Browser Only checkbox in the top-right corner of the window. After you authenticate and relaunch UI Browser, it will be trusted and will be able to perform all of its functions that normally require the 'Enable access for assistive devices' setting.
The technique required to set up trusted mode has not changed in 10.8, so I suspect there is an error in your helper application or in the way that you launch it or authorize it. For example, the helper application has to run as root, and it is very easy to accidentally get its permissions wrong while you're building it. Also, I thimk it may still not be documented, but you have to relaunch the trusted application after making it trusted.
Bill Cheeseman Now, on 10.8 this approach doesn't work. AXMakeProcessTrusted returns kAXErrorFailure (-25200), and I can do nothing about it. The only thing I can do - is show a message box and ask the user, if he wants to use my application, he has to enable access for assistive devices in System Preferences, manually.
|
_______________________________________________
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