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 - b...@cheeseman.name _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com