I am wondering how I can disable my keyboard and mouse in Python 3.7.1
. This question was already asked many years ago here but the answers are for python 2.7. All the modules in the answers no longer work on Python 3.7.1.
I am asking as when I use pyautogui
, I sometimes forget I cannot touch my keyboard/mouse. Thus, I want to disable my keyboard at at the parts I use pyautogui
. Then enable the keyboard/mouse when it doesn't use pyautogui