Skip navigation.
 
mlRe: Emulating mouse clicks
FROM : j o a r
DATE : Sun Oct 17 15:01:24 2004

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

Related mailsAuthorDate
mlEmulating mouse clicks Tim Lucas Oct 17, 09:26
mlRe: Emulating mouse clicks Jiri Volejnik Oct 17, 11:40
mlRe: Emulating mouse clicks j o a r Oct 17, 15:01
mlRe: Emulating mouse clicks David Niemeijer Oct 17, 15:15