Re: Give a menu keyboard focus - in code
Re: Give a menu keyboard focus - in code
- Subject: Re: Give a menu keyboard focus - in code
- From: Jerry Krinock <email@hidden>
- Date: Sun, 09 Oct 2011 14:41:27 -0700
OK, the CGEventCreateMouseEvent() I described in my previous message seems to work, except for one detail. How to I find the location of, in particular, a Status Menu item, in CG "global" coordinates? It looks like that's the hardest part!
Jerry
On 2011 Oct 09, at 14:16, Jerry Krinock wrote:
> Update: I'm "borrowing" the mouse using CGEventCreateMouseEvent(). It seems like it might work, but sure seems like a kludge, and many lines of code to do something very simple.
>
> Any better ideas would be appreciated.
>
> On 2011 Oct 09, at 12:31, Jerry Krinock wrote:
>
>> Is there any code which can *click* a menu, to give it keyboard focus, so that the user may then select an item in the menu using arrow keys?
_______________________________________________
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