• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Emulating mouse clicks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emulating mouse clicks


  • Subject: Re: Emulating mouse clicks
  • From: j o a r <email@hidden>
  • Date: Sun, 17 Oct 2004 15:01:24 +0200


On 2004-10-17, at 11.40, Jiri Volejnik wrote:

Last question for today... how can I emulate a mouse click event?
I'm writing a background app where when you push F1 it emulates clicking the mouse (to reduce RSI).

What about NSControl's -performClick: or NSEvent's -mouseEventWithType: location: modifierFlags: timestamp ....?

No, that only works within the application. You would use something like this (CGRemoteOperation.h):

<http://developer.apple.com/documentation/GraphicsImaging/Reference/ Quartz_Services_Ref/qsref_main/function_group_10.html>

j o a r

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Emulating mouse clicks (From: Tim Lucas <email@hidden>)
 >Re: Emulating mouse clicks (From: Jiri Volejnik <email@hidden>)

  • Prev by Date: Bindings for NSTextFields
  • Next by Date: Re: Emulating mouse clicks
  • Previous by thread: Re: Emulating mouse clicks
  • Next by thread: Re: Emulating mouse clicks
  • Index(es):
    • Date
    • Thread