简体   繁体   中英

pyautogui.click() not working in web browser on specific site

import pyautogui
pyautogui.moveTo(x1, y1, duration = 1)
pyautogui.click(clicks = 2)

I'm trying to automate the mouse moving to and clicking a specific location in my web browser. However, it's not letting me left click after having moved the mouse to the desired coordinates. But it is letting me right click.

And, after having moved if I use my mouse to click, that click works. Just can't get it to execute the click on this specific page. Is it possible that this site has some block to not allow me to automate this clicking?

Any help is greatly appreciated!

This might help:

import pyautogui

pyautogui.moveTo(xPosition, yPosition, duration=1)
pyautogui.click(clicks=2, button='left')

Tell me if it worked

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM