KeyboardControl

[python code] keyboard and mouse control

how to install pip install pyautogui Finding Coordinate It will display current mouse coordinate every second. import pyautogui import time while True: print("Current Mouse Position : ", pyautogui.position()) time.sleep(1) mouse control import pyautogui pyautogui.moveTo(300, 300) # move (x=300, y=300) pyautogui.moveRel(x, y, t) # move (from current pos, move x and y with time. If t is 2, it will take 2 second to move) pyautogui.click() # click pyautogui.doubleClick() # double click pyautogui.