Skip to content

Instantly share code, notes, and snippets.

@jftuga
Created February 5, 2018 04:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jftuga/47fec5a128a6d945b86ad1c0e1913932 to your computer and use it in GitHub Desktop.
Save jftuga/47fec5a128a6d945b86ad1c0e1913932 to your computer and use it in GitHub Desktop.
PyAutoGUI Example #1
#!/usr/bin/env python3
import pyautogui
import time
for i in range(3):
print(i)
pyautogui.moveTo(100, 100, duration=0.25)
pyautogui.moveTo(200, 100, duration=0.25)
pyautogui.moveTo(200, 200, duration=0.25)
pyautogui.moveTo(100, 200, duration=0.25)
time.sleep(1)
pyautogui.typewrite('ls -l\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment