set online control of mouse with pyautogui code example
Example: python move mouse slowly
import autopy # pip install autopy
autopy.mouse.smooth_move(100, 600)
import autopy # pip install autopy
autopy.mouse.smooth_move(100, 600)