Sign in to follow this  
Followers 0
BBoyBreaker

_ImageSearch help please

10 posts in this topic

#1 ·  Posted (edited)

#include <ImageSearch.au3>
Sleep(5000)
if _ImageSearch("icon.PNG" ) Then
   MouseClick("left" , 631, 32)
EndIf

i mean with this if u found this image go and click on it but i get error with it

please help and give me a working example if than possible

Edited by BBoyBreaker

Share this post


Link to post
Share on other sites

Help others help you. What error are you getting?


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

What makes you believe that function only takes 1 parameter?

i ask cuz i don't know the problem and its give me an error with parameters

can u explain for me the parameters ?

Share this post


Link to post
Share on other sites

Seeing your new and usually (not always) this type of question involves games I suggest you read the forum rules. We do not allow discussion of how to automate games. Now If I'm incorrect and you are not doing this then forgive my judgement. It would be then helpful to know what app you are working with. In many cases we may have a script that is ready to go and you can use that.

Share this post


Link to post
Share on other sites

Help others help you. What error are you getting?

 Incorrect number of parameters in function call.:

Seeing your new and usually (not always) this type of question involves games I suggest you read the forum rules. We do not allow discussion of how to automate games. Now If I'm incorrect and you are not doing this then forgive my judgement. It would be then helpful to know what app you are working with. In many cases we may have a script that is ready to go and you can use that.

no no no i work now on image finder

its a small program to find a cutted image then the program will lead you to the full image u can say its like google search

That function will have a header which explains the parameters far better than I could.

You should read them carefully, the thread where you find it also has many examples.

i got it from this link

LINK

but there is no examples there so can you give me a link please ?

Share this post


Link to post
Share on other sites

Simplest example and you can start from here on:

#requireAdmin
#include <ImageSearch.au3>
$x1 = 0
$y1 = 0

while 1
If _ImageSearch("picofmouse.bmp", 1, $x1, $y1, 1) = 0 Then
ClickClick()
EndIf
wend

 

make sure the dll is in the same spot as script. And for Image, you can put it in the same directory as the script or create a folder and put it in there.


Msgbox(0, "Hate", "Just hate it when I post a question and find my own answer after a couple tries. But if I don't post the question, I can't seem to resolve it at all.")

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  
Followers 0