Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PyAutoGUI Example #2
#!/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