Jump to content

imagesearch doesnt work propely


Recommended Posts

My code dont work like it should.

$x1=0
$y1=195
Func _PixelSearch() 
While 1
$result = _ImageSearch("lol.bmp",1,$x1,$y1,0)
if $result=1 Then
Call($aWords[Random(0,UBound($aWords)-1,1)])
EndIf
    WEnd
EndFunc

I wanna it search for the lol.bmp in height:195 no matter what the width is, but it searchs the lol.bmp everywhere?

lol.bmp: width-18 pixels, height-10 pixels.

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...