Nov-23-2023, 09:07 PM
Hi I thought I posted a link to the code. But here it is again. I actaully found out where the issue is but still not able to solve it. I want to click on the TSectStr.PNG but it is hidden inside a drop down menu. For some reason python is not able to see this dropdown menu thus it can't click on it.
Is there anyway that python is able to locate and see the dropdown menu images?
Thanks
Is there anyway that python is able to locate and see the dropdown menu images?
Thanks
from imagesearch import imagesearch from pynput.mouse import Button, Controller import time import pyautogui import time import os os.chdir('C:\\Users\\ARCLA\\AppData\\Local\\Programs\\Python\\Python312\\auto_click') pyautogui.moveTo(2000, 1500) pyautogui.click() pyautogui.hotkey('y') pyautogui.write('Violin I A STR VEP') pyautogui.hotkey('enter') print('Looking for "TSectStr.PNG" button...') x, y = imagesearch("TSectStr.PNG", 0.8) if x != -1 and y != -1: print('Button "TSectStr.PNG" found, clicking...') pyautogui.moveTo(x+10,y+10) pyautogui.click(button="left")