3 ms·
I'm on mobile, so I can't write code for you (plus, the code is going to be ugly since it relies on a C framework). However, I can give you some pointers; one,
by saagarjha 9y ago
I'm on mobile, so I can't write code for you (plus, the code is going to be ugly since it relies on a C framework). However, I can give you some pointers; one, you'll need to create some sort of app, since it will need to continuously run with a run loop. You'll want to look into the Accessibility/OSA APIs and register an AXObserver.