Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
NSView::sendEvent() with properties from a button's AXUIElementRef, is it possible?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSView::sendEvent() with properties from a button's AXUIElementRef, is it possible?



Hello,

I am abusing the Accessibility API for automation from inside an Adobe Illustrator plugin. It is easy for me to use AXUIElementPostKeyboardEvent() for simulating user actions on OK/ Cancel buttons.
However, AXUIElementPerformAction for any other buttons doesn't work. The button only gets hilighted, but not triggered.
Is there any way to post fake mouseDown/mouseUp events to the control's parent view? I can find out the position via AXValueGetValue(kAXValueCGPointType), but have no idea how to obtain the necessary NSView to do so. Any hints are welcome! Also I would be pleased to get informed about a possible better solution.


Thanks,
Michael

_______________________________________________
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




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.