Re: Getting the focused UI Element
Re: Getting the focused UI Element
- Subject: Re: Getting the focused UI Element
- From: email@hidden
- Date: Wed, 08 Jun 2011 22:19:10 +0200
Thanks Chris, it works.
AXUIElementRef frontApp;
CFTypeRef frontElem;
frontApp = AXUIElementCreateApplication(pid);
AXUIElementCopyAttributeValue(frontApp, kAXFocusedUIElementAttribute, &frontElem);
Regards,
Jake
On Jun 8, 2011, at 4:57 PM, Chris Fleizach wrote:
> kAXFocusedUIElementAttribute I believe on the AXApplication
>
> Sent from my iPhone
>
> On Jun 8, 2011, at 6:15 AM, email@hidden wrote:
>
>> Hi all,
>>
>> is there a method to get the focused UI Element of the frontmost application?
>> Or do I need to loop over all elements and check for kAXFocusedAttribute?
>>
>> Regards,
>> Jake
>> _______________________________________________
>> 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
>
_______________________________________________
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