Re: Creating a mouse event & event number
Re: Creating a mouse event & event number
- Subject: Re: Creating a mouse event & event number
- From: Eric Gorr <email@hidden>
- Date: Wed, 26 Jan 2011 07:39:02 -0500
Thanks. That was useful.
Looks like the answer is to use CGEventCreateMouseEvent.
The following stackoverflow question might be of interest to some:
http://stackoverflow.com/questions/1483657/performing-a-double-click-using-cgeventcreatemouseevent
> Whether it matters or not depends on the circumstances and requirements.
>
> In case of making a complete remote-control application, there are some issues (at least on 10.5, don't know whether anything changed on 10.6).
>
> See this thread on quartz-dev:
>
> http://lists.apple.com/archives/quartz-dev/2010/May/msg00050.html
>
>
> izidor
>
>
>
> On 24.1.2011, at 16:52, Eric Gorr wrote:
>
> > It's straightforward to create a mouse event using NSEvent's mouseEventWithType method. The only question I have is what should I be passing in for the eventNumber parameter? 0? 1? some other number? Does it matter?
_______________________________________________
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