NSView::sendEvent() with properties from a button's AXUIElementRef, is it possible?
NSView::sendEvent() with properties from a button's AXUIElementRef, is it possible?
- Subject: NSView::sendEvent() with properties from a button's AXUIElementRef, is it possible?
- From: Michael Fielitz <email@hidden>
- Date: Thu, 30 Apr 2009 10:35:22 +0200
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