Re: NSView::sendEvent() with properties from a button's AXUIElementRef, is it possible?
Re: NSView::sendEvent() with properties from a button's AXUIElementRef, is it possible?
- Subject: Re: NSView::sendEvent() with properties from a button's AXUIElementRef, is it possible?
- From: Eric Schlegel <email@hidden>
- Date: Thu, 30 Apr 2009 07:21:03 -0700
On Apr 30, 2009, at 1:35 AM, Michael Fielitz wrote:
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.
You might try posting raw mouse-down/mouse-up events using the CGEvent
API in CoreGraphics.
Also, note that Adobe Illustrator is a Carbon app, so it doesn't have
NSViews. It has the Carbon equivalent, an HIView.
-eric
_______________________________________________
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