AXUIElementCopyAttributeValue
AXUIElementCopyAttributeValue
- Subject: AXUIElementCopyAttributeValue
- From: Modesitt Software <email@hidden>
- Date: Thu, 25 Mar 2004 14:37:10 -0800
My code obtains the frontmost window title of the frontmost application
using AXUIElementCopyAttributeValue with the attribute
kAXTitleAttribute:
CFTypeRef cfRef;
axErr = ::AXUIElementCopyAttributeValue( theElementRef,
kAXTitleAttribute, &cfRef );
which works in most cases. However, on some windows, such as iMovie
windows, only part of the window title is returned.
For example, if my iMovie file is called MyBigMovie, the window title is
iMovie: MyBigMovie 57:42 (NTSC)
however, AXUIElementCopyAttributeValue only returns "iMovie" as the
window title. I did notice that as iMovie is starting, the window
title starts as iMovie, then later the file name is appended. Could
that be why AXUIElementCopyAttributeValue only returns iMovie as the
window title? Or is there something else I need to do, or is that how
the accessibility APIs work?
Thank you,
Bill Modesitt
_______________________________________________
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.