Jump to content

Imagesearch going out of range


Recommended Posts

Hello, 

Just want to start by saying thanks and i appreciate any help/advice/information.

Scenario:  I'm trying to have it ONLY search for the image in the area ranging from x:408 y:511 through x:799 y:957.

Problem:  Imagesearch keeps searching as low as y 50, which is way below my y minimum.

The only time i got it to NOT search that is if i made the minimum y like, 3000 haha.

Anyone have any solutions?  Thanks again!

 

 

Func likecone() ;Column 1 check
Local $likesearch = _Imagesearcharea("pic.bmp",408,511,0,799,957,$x,$y,10)
If $likesearch = 1 Then
MouseMove($x, $y, 10)
EndIf
EndFunc
 
Link to comment
Share on other sites

awesome that worked! thanks a lot!  Now i have another problem though haha.. I've been running so many tests to see what i'm doing wrong but i cant find the mistake...
 

For this one, i'm trying to have it search only within 0x,0y through 1300x, 175y

Not sure why, but i ran it about 50 times and it would keep going past the 175y limit, all the way to the bottom right of my screen.

Can you find anything i did wrong here?  Do i have the coordinates in the wrong spots?

Thanks a lot!

 

Local $spacesearch = _Imagesearcharea("pic.bmp",0,0,0,1300,175,$x,$y,10) ;searches for like buttons without username showing to click
   If $spacesearch = 1 Then
   Send ("{DOWN}")
   Sleep (2000)
Else
   Sleep (500)
EndIf
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...