GiacomoLaw / Keylogger

A simple keylogger for Windows, Linux and Mac
https://simple-keylogger.github.io/
MIT License
2.06k stars 617 forks source link

Error [Mac] #92

Closed victorlsn closed 4 years ago

victorlsn commented 4 years ago

I keep getting this error: ERROR: Unable to create event tap.

ChillerDragon commented 4 years ago

Could you maybe provide some information like macOS version or what compiler you used?

From https://developer.apple.com/documentation/coregraphics/1454426-cgeventtapcreate Event taps receive key up and key down events if one of the following conditions is true:

Quotz commented 4 years ago

I am getting the same, not sure why

Quotz commented 4 years ago

Solved it. Go to Settings -> Security & Privacy -> Accessibility and tick Terminal. Now run the command again

GiacomoLaw commented 4 years ago

Thanks for posting a fix!

jjant commented 1 year ago

I still get this error even with accessibility enabled for my terminal (alacritty).

jjant commented 1 year ago

Interestingly, I tried running it from the builtin Terminal app and it worked (both have accessibility enabled).