Itunes is not resizing by accessibility api
Itunes is not resizing by accessibility api
- Subject: Itunes is not resizing by accessibility api
- From: "Smita Godbole" <email@hidden>
- Date: Mon, 2 Jun 2008 18:07:07 +0530
I am writing a sample application,
where I am using accessibilty api to resize the selected window.
For every other appliation it is working fine,except iTunes.
AXUIElementIsAttributeSettable (m_curWndElement, kAXSizeAttribute, &settable);
NSLog(@"kAXSizeAttribute, settable :: %d ",settable); ----o/p == 0
AXUIElementIsAttributeSettable (m_curWndElement, kAXPositionAttribute, &settable);
NSLog(@"kAXPositionAttribute settable :: %d ",settable); ----o/p == 1
AXError err1 = AXUIElementSetAttributeValue(m_curWndElement, kAXSizeAttribute, newSizeRef1);
NSLog(@"err1 :: %d ",err1); ----o/p == -25205(kAXErrorAttributeUnsupported)
err1 = AXUIElementSetAttributeValue(m_curWndElement, kAXPositionAttribute, newWindowPos1);
NSLog(@"err2 :: %d ",err1); ----o/p == 0 (kAXErrorSuccess)
Is AXUIElementRef object(i.e kAXSizeAttribute) of iTunes is settable or not??
I have checked with other sample Carbon application, its working fine.
So is anybody knows why the same element can be repositioning but not resizing??
why it is returning 0 when we can resize it manually??
Or is there any other way to resize the itunes application window??
Thanks & Regards,
- Smita Gosbole
_______________________________________________
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