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
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 mails | Author | Date |
|---|---|---|
| Tim Lucas | Oct 17, 09:26 | |
| Jiri Volejnik | Oct 17, 11:40 | |
| j o a r | Oct 17, 15:01 | |
| David Niemeijer | Oct 17, 15:15 |






Cocoa mail archive

