Questions tagged [cgeventtap]
79 questions
0
votes
1 answer
Using CGEventTap to disable the keyboard
I have found this:
Programmatically Disable Mouse & keyboard
But if I copy the code to an new proj and try build it it says build failed.
But there are no errors in the code it self.
Now my question is how i use event taps to do this (disable the…

UNX
- 79
- 1
0
votes
1 answer
Global Application Monitoring macos/cocoa/objective-c
Is there a way to monitor Action had been performed in Applications? For Example the User opens a new TAB in Safari. Im try to monitor these actions. I'm searching for a Class which recognize these kind of actions!!
Anybody a tip or a…

Togo
- 172
- 8
0
votes
2 answers
CGEventPost doesn't work with backspace character on some applications
(This question is similar to the one I recently posted here except that now I'm using CGEventPost to simulate more keystrokes instead of modifying current event)
The code bellow was able to insert an 'a' character every time the 'h' button is…

fang
- 617
- 6
- 17
-1
votes
1 answer
Xcode Project Setting for CGEventTap?
A while ago, I created a extremely simple Xcode project to test CGEventTap, and it works perfectly fine when I run from Xcode. The code is at the bottom.
However, if I create a new project on Xcode, paste the exactly the same code below, and run…

jl303
- 1,461
- 15
- 27