application automation python library 1

application automation python library

import cv2
from gui_automation import GuiAuto

image_path = "win10key.png"
ga = GuiAuto()
if ga.detect(cv2.imread(image_path), 0.8):
    ga.click()

Here is what the above code is Doing:
1. It imports the GuiAuto class from the gui_automation module.
2. It creates an instance of the GuiAuto class.
3. It calls the detect() method of the GuiAuto class.
4. It calls the click() method of the GuiAuto class.

Similar Posts