Jump to content

imagesearch help


Seagul
 Share

Recommended Posts

What am I why wont it find my image, is there an error in my function.

Func FindGlitter()
    $imageresult = _ImageSearchArea("glitter.bmp", 1, 17, 17, $xx1, $yy1, $xx2, $yy2, 0)
    If $imageresult=1 Then
        TrayTip("Test", "bmp found", 2, 1)
        $bootyfound = $bootyfound + 1
        MouseClick($Click, $imageresult[0], $imageresult[1], 1, 0)
        Sleep($loottime)
        $glitterfound = $glitterfound + 1
        $bootyfound = $bootyfound - 1
    Else
        TrayTip("Test", "error somethings wrong", 2, 1)
    EndIf
EndFunc
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...