Created
February 5, 2018 04:23
-
-
Save jftuga/8fc8c2f54d5fd41f77f8e8431324ac43 to your computer and use it in GitHub Desktop.
PyAutoGUI Example #2
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 | |
################################################################### | |
# MacOS | |
def main(): | |
pyautogui.moveTo(100, 100) | |
pyautogui.hotkey('command', 'shiftleft', '4') | |
pyautogui.dragTo(1000,1900, button='left') | |
################################################################### | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment