MacOS – capture events in Mac OS X

Does anyone know how to capture events in Mac OS X? My problem is that I need to intercept e.g. MOUSEKEYDOWN or maybe KEYSTROKE before the event reaches any application. My goal is to prevent the event or change the data it may contain. I read something about the kEvent class, but I can’t find it Some samples to understand how to start programming with it.
Try Quartz Event Taps. You can explore how they use Event Taps Testbench or read the documentation.

Does anyone know how to capture events in Mac OS X? My problem is that I need to intercept e.g. MOUSEKEYDOWN or maybe KEYSTROKE before the event reaches any application. My goal is to prevent the event or change the data it may contain. I read something about the kEvent class, but I can’t find it Some samples to understand how to start programming with it.

Try Quartz Event Taps. You can explore how they use Event Taps Testbench or read the documentation.

Leave a Comment

Your email address will not be published.