Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pip install pyautogui
- import pyautogui
- import time
- # click at x and y
- pyautogui.click(500, 500, duration=1)
- # wait 5 seconds
- time.sleep(5)
- #move mouse to x and y
- pyautogui.moveTo(450, 450, duration=5)
- #move mouse while holding left
- pyautogui.dragRel(100, 0, duration=5)
- #scroll up and down
- pyautogui.scroll(-400)
- pyautogui.scroll(450)
- # Keyboard functions
- pyautogui.click(400, 700, duration=1)
- pyautogui.typewrite('TabNation')
- #hotkeys keyboard
- pyautogui.hotkey('ctrlleft', 'a')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement