Jump to content

Estou tentando fazer a seguinte programação mas sou novo e estou tendo alguns problemas


JPT

Recommended Posts

import pyautogui
import time

 

# se o mouse ficar sem mexer depois de 5 minutos  o programa irá executar

#entrar na aréa de trabalho
pyautogui.hotkey('winleft','d')
time.sleep(0.2)
# posicionar o mouse e abrir o programa   
pyautogui.doubleClick(119,154)

 

#se o mouse mexer o programa irá parar

#se o mouse ficar 5 minutos  sem mexer o programa voltará a executar

#criar um loop para isso

Edited by JPT
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.