Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scrolling in Python
#6
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

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")
Reply


Messages In This Thread
Scrolling in Python - by newpyt - Nov-23-2023, 12:51 AM
RE: Scrolling in Python - by Pedroski55 - Nov-23-2023, 07:02 AM
RE: Scrolling in Python - by newpyt - Nov-23-2023, 07:15 AM
RE: Scrolling in Python - by newpyt - Nov-23-2023, 07:27 AM
RE: Scrolling in Python - by deanhystad - Nov-23-2023, 02:39 PM
RE: Scrolling in Python - by newpyt - Nov-23-2023, 09:07 PM
RE: Scrolling in Python - by newpyt - Nov-23-2023, 09:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  help with scrolling text on RGB Matrix Foutsy 3 422 Apr-09-2024, 09:00 PM
Last Post: deanhystad
  raspberry use scrolling text two lines together fishbone 0 1,486 Sep-06-2021, 03:24 AM
Last Post: fishbone
  Can Python be used to create scrolling credits (as follows) digger 3 3,016 Aug-27-2021, 03:15 PM
Last Post: Larz60+
  How to scrolling Picture in x axis kalihotname 1 2,295 Jun-16-2020, 12:18 PM
Last Post: DeaD_EyE
  scrolling a text using loop ebolisa 1 3,369 Apr-27-2019, 02:31 PM
Last Post: ebolisa
  20 x 4 Line 2 scrolling text for LCD-I2C Display RoadieMunky 2 4,875 Mar-04-2018, 10:17 AM
Last Post: RoadieMunky

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020