Jump to content
Sign in to follow this  
bf2forlife

imagesearch doesnt work propely

Recommended Posts

bf2forlife

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.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.