Re: Processing mouse clicks using Quartz events

2011-02-16 Thread Kyle Sluder
On Feb 15, 2011, at 11:23 PM, Tomáš Znamenáčektomas.znamena...@gmail.com wrote: I have a system utility application that needs to be triggered by a mouse click on certain UI elements. In all applications, not just mine. When the application notices the right kind of a mouse click, I want to

Re: Processing mouse clicks using Quartz events

2011-02-16 Thread Tomáš Znamenáček
Kyle Sluder wrote: Sounds like you want a Quartz event tap filter. You can create one using CGEventTapCreate. That’s exactly what I am doing, but as I wrote, I found it hard to filter a whole mouse click event, since the tap filter only receives the low-level event types. When I receive a

Processing mouse clicks using Quartz events

2011-02-15 Thread Tomáš Znamenáček
Hello! I have a CGEventTap and I would like to catch mouse click events. Detecting a mouse click event is easy, but I don’t want some of the clicks to get processed by the rest of the system. And I can’t figure out how. The system only sends low-level events like mouseUp, mouseDown,

Re: Processing mouse clicks using Quartz events

2011-02-15 Thread Graham Cox
On 16/02/2011, at 3:53 AM, Tomáš Znamenáček wrote: Am I missing something? I don't know, but we all are. What are you actually trying to do? If you just want to process mouse clicks this is surely not the way to go about it. --Graham ___

Re: Processing mouse clicks using Quartz events

2011-02-15 Thread Tomáš Znamenáček
I don't know, but we all are. What are you actually trying to do? If you just want to process mouse clicks this is surely not the way to go about it. I have a system utility application that needs to be triggered by a mouse click on certain UI elements. In all applications, not just mine. When