I have a python code that uses the camera from the monitor and an IR pen to move the mouse.
However when i click on something else other than the terminal window, the computer is no longer in command of the terminal window, therefore the mouse doesn't move anymore on moving the IR pen.
I am looking for a code that would solve my problem.