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)