pyautogui left click code example
Example 1: python pyautogui
>>> import pyautogui
>>> screenWidth, screenHeight = pyautogui.size()
>>> currentMouseX, currentMouseY = pyautogui.position()
>>> pyautogui.moveTo(100, 150)
>>> pyautogui.click()
>>> pyautogui.click(200, 220)
>>> pyautogui.move(None, 10)
>>> pyautogui.doubleClick()
>>> pyautogui.moveTo(500, 500, duration=2, tween=pyautogui.easeInOutQuad)
>>> pyautogui.write('Hello world!', interval=0.25)
>>> pyautogui.press('esc')
>>> pyautogui.keyDown('shift')
>>> pyautogui.write(['left', 'left', 'left', 'left', 'left', 'left'])
>>> pyautogui.keyUp('shift')
>>> pyautogui.hotkey('ctrl', 'c')
Example 2: python hotkey pyautogui
>>> pyautogui.press('enter')
>>> pyautogui.press('f1')
>>> pyautogui.press('left')
Example 3: pyautogui moveTo overtime
import pyautogui
pyautogui.moveTo(100, 100, 2)
Example 4: pyautogui mouse up mouse down
>>> import pyautogui
>>> pyautogui.click(10, 5)