How to set a global hotkey without pyautogui getting in the way
So essentially I have a global hotkey registered in my Python program using the ‘keyboard’ library. It listens for the key event ‘ctrl+shift+x’ to restart the application. I have one script within my program that uses openCV for object detection in a game and during one of the interactions, it has to hold down the shift key using pyautogui to perform the action. During that, if I try to press my global hotkey, it won’t register unless I spam it. It’s most likely because of pyautogui holding down shift. I’ve tried different key combinations too that don’t utilize shift, but no progress there.