Re: What happened to AXKey?
Re: What happened to AXKey?
- Subject: Re: What happened to AXKey?
- From: Bill Cheeseman <email@hidden>
- Date: Sat, 03 Mar 2007 17:47:10 -0500
- Thread-topic: What happened to AXKey?
on 2007-03-03 5:24 PM, Matt Hahnfeld at email@hidden wrote:
>> The term you want is AXFocused. "Focus" is a synonym for "key" and arguably
>> more descriptive.
>
> Unfortunately, playing around with the accessibility inspector and
> common applications, I can't find any instance where AXFocused is set
> to "true" for a window, even for known "key" windows. The AXFocused
> attribute for a window also doesn't seem to be writable for any
> applications I've seen, despite the fact that it is actually indicated
> as writable for some windows (for example, finder windows).
It works fine here, as long as you obey the rules. Try my PreFab UI Browser
product -- free 30-day trial period. Download it at
PreFabSoftware.com/uibrowser/.
Open several windows in the Finder, then in Ui Browser set the Finder as the
target application, select the window in UI Browser's browser view that you
know is the frontmost Finder window, then open UI Browser's Attributes
drawer and look at the focused property. It reads true.
Now select a Finder window in UI Browser's browser view that you know is NOT
frontmost. The focused property reads false. Now select that attribute, and
click the Set checkmark so that it becomes checked. The Finder window comes
to the front among all the other Finder windows, and the value of the
focused attribute changes to true. This is all done with the Accessibility
API.
You cannot unset the focused property of the frontmost Finder window and
expect it to move to the back. It's against the rules. Setting the focused
property only works to bring a non-focused window to the front.
Bill Cheeseman
_______________________________________________
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