Python Forum

Full Version: Why is left mouse click not working?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
import schedule
import pyautogui

def job():     # def is a function
    pyatutogui.click()    
        
schedule.every(.25).minutes.do(job)

while True:
    schedule.run_pending()
Why is left mouse click not working?

Thank you,
yeto
(Jul-13-2019, 02:58 PM)yeto Wrote: [ -> ]
import schedule
import pyautogui

def job():     # def is a function
    pyatutogui.click()    
        
schedule.every(.25).minutes.do(job)

while True:
    schedule.run_pending()
Why is left mouse click not working?

Thank you,
yeto
xxxxx
This coding stuff is hard ain't it!?
(Jul-13-2019, 02:58 PM)yeto Wrote: [ -> ]
import schedule
import pyautogui

def job():     # def is a function
    pyatutogui.click()    
        
schedule.every(.25).minutes.do(job)

while True:
    schedule.run_pending()
Why is left mouse click not working?

Thank you,
yeto

Figured it out. I need glasses.
yeto :)
Im guessing you was getting a pyatutogui not defined error from the line pyatutogui.click() due to the typo which should of been pyautogui.
Please include errors when something is not working, it would help to pinpoint why it is not working and it increases the chances of getting an answer.