Created
February 5, 2018 04:22
-
-
Save jftuga/47fec5a128a6d945b86ad1c0e1913932 to your computer and use it in GitHub Desktop.
PyAutoGUI Example #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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