Can't seem to find any solution to the problem. When I try to run the following code the console response with "This process is not trusted! Input event monitoring will not be possible until it is added to accessibility clients."
I am using PyCham on a MacOS Big Sur device. My Mac is not asking for any permissions. I ran exact same code on a Windows machine without any problems. Can't find any help online.
What am I missing??
import pyautogui
from pynput import keyboard
def on_activate_h():
print(pyautogui.position())
with keyboard.GlobalHotKeys({
"<ctrl>+<alt>+r": on_activate_h}) as h:
h.join().