I wrote a script to handle the mouse and keyboard to help me deal with the works in windows by using the library "Pyautogui".
it went well if it was in a logging active session, but it doesn't work if the windows went to lock screen. I can't disable the lock screen because of the security issue.