Coding Global Background
Coding Global

need help with pyauto gui locate

Archiviert 2 years ago
1 Nachrichten
1 Mitglieder
Erstellt 2 years ago
Aktualisiert 2 years ago
In Discord öffnen
T
tcyt7
Script Kiddie!
        choice_image = os.path.join(base_dir, f'choice{answer}.png')
        choice_location = pyautogui.locateOnScreen(choice_image)

        if choice_location is not None:
            pyautogui.click(choice_location)
            time.sleep(0.5)
            pyautogui.click(2023, 1256)
        else:
            print(f"Could not find the choice image for {answer}")

    else:
        print("OCR did not return any results.")


thats my project structure
need help with pyauto gui locate

Antworten (1)