Jump to content
Sign in to follow this  
Seagul

imagesearch help

Recommended Posts

Seagul

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

Share this post


Link to post
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
Sign in to follow this  

×