How to handle when mouse pointer changes to hand icon using pyautigui

时间:2019-03-06 11:33:52

标签: pyautogui

I am using pyautogui to click images on a desktop. However I have a problem where it locates and clicks the correct image. But as when the mouse moves to the image (it is a close button) it changes from a mouse cursor to a hand icon. I think the program was built in java, but not sure. How do would I compensate for this within pyautogui?

coord_x, coord_y = locateCenterOnScreen("img/close.png")
pyautogui.click(x=coord_x, y=coord_y)

0 个答案:

没有答案