Re: AXUIElementPostKeyboardEvent - not sending key presses to Safari/TextEdit in Lion
Re: AXUIElementPostKeyboardEvent - not sending key presses to Safari/TextEdit in Lion
- Subject: Re: AXUIElementPostKeyboardEvent - not sending key presses to Safari/TextEdit in Lion
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 18 Nov 2011 05:02:05 -0500
On Nov 16, 2011, at 1:51 PM, Patrick Robertson wrote:
> AXUIElementPostKeyboardEvent (app, (CGCharCode) 0, (CGKeyCode)55, true );
> //Command
>
> AXUIElementPostKeyboardEvent (app, (CGCharCode) 0, (CGKeyCode)53, true );
> //Escape
>
> AXUIElementPostKeyboardEvent (app, (CGCharCode) 0, (CGKeyCode)53, false );
> //Escape
>
> AXUIElementPostKeyboardEvent (app, (CGCharCode) 0, (CGKeyCode)55, true );
> //Command
In the last step you should have passed false instead of true, to let the command key up.
--
Bill Cheeseman - email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden