Skip to content

Instantly share code, notes, and snippets.

@eliasalbuquerque
Created December 26, 2023 16:42
Show Gist options
  • Save eliasalbuquerque/61b8c3d3cfa0112da9ea1e688a7eea4d to your computer and use it in GitHub Desktop.
Save eliasalbuquerque/61b8c3d3cfa0112da9ea1e688a7eea4d to your computer and use it in GitHub Desktop.
Curso Dev Aprender | Jhonatan de Souza
# 202312 - Python 3.12.0
import pyautogui
# Criar pasta em um diretório usando o mouse
# 1. abrir explorer - 1c
print('Abrindo diretório...')
pyautogui.click(1100,1049, duration=1)
# 2. abrir home - 1c
pyautogui.click(337,683, duration=1)
# 3. abrir workspace - 2c
pyautogui.doubleClick(1279,424, duration=1)
# 4. abrir python-automation - 2c
pyautogui.doubleClick(570,806, duration=1)
# 5. abrir assets - 2c
pyautogui.doubleClick(569,393, duration=1)
# 6. mover meio do explorer
print('Criando pasta...')
pyautogui.click(980,568, duration=1)
# 7. botao direito mouse
pyautogui.rightClick()
# 8. mover ate 'New'
pyautogui.click(1150,458, duration=1)
# 9. mover ate 'Folder'
pyautogui.click(1335,458, duration=1)
# 10. clicar meio do explorer
pyautogui.click(980,568, duration=1)
print('Pasta criada com sucesso!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment