Re: How to move focus to the Dock using the Accessibility API?
Re: How to move focus to the Dock using the Accessibility API?
- Subject: Re: How to move focus to the Dock using the Accessibility API?
- From: Bill Cheeseman <email@hidden>
- Date: Sun, 05 Oct 2003 06:26:20 -0400
on 03-10-05 2:42 AM, David Niemeijer at email@hidden wrote:
>
As part of an assistive application I need to programmatically focus
>
the Dock so that I can tab through it. I know full-keyboard access
>
allows focussing of the Dock, but for various reasons I cannot rely
>
on that and need to get the Dock focussed progammatically. Is there a
>
way, once I have the Dock's process ID and/or AXUIElementRef to make
>
the Dock obtain keyboard focus?
That's an interesting question. I can't find a way to do it using PreFab UI
Browser. The most promising idea I had was to use the Keystrokes drawer to
send Control-F3 (after turning on Full Keyboard Access in System Preferences
manually, which you don't want to rely on) -- but I don't know what
application or process to send the keystroke to. Besides, I'm not sure this
works on a PowerBook where you would also have to press the fn key.
The Dock's focused UI element attribute is not settable. Clicking UI
Browser's Activate button doesn't help. I can't make Dock menus appear,
either. I can, however, perform a Press action on a specific Dock button,
using standard Accessibility API with the Dock application targeted (it's in
/System/Library/CoreServices) -- but all this does is activate the
application represented by that Dock button.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.