Skip to content

imagesearcharea bug #30

@frandegrandis

Description

@frandegrandis

Im using imagesearcharea to just get the game screen using:

wHandler = win32gui.FindWindow(None,'Yu-Gi-Oh! DUEL LINKS')
windowRect = win32gui.GetWindowRect(wHandler)

when i use:

pos = imageRecognition.imagesearcharea('OK.jpg',windowRect[0],windowRect[1],windowRect[2],windowRect[3],0.9)
    if pos != [-1,-1]:
        imageRecognition.click_image('OK.jpg',pos,'left',0)

It returns [-1,-1], but if i usea:

pos = imageRecognition.imagesearcharea('OK.jpg',0,0,windowRect[2],windowRect[3],0.9)
    if pos != [-1,-1]:
        imageRecognition.click_image('OK.jpg',pos,'left',0)

it works fine. There is something im doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions