BBoyBreaker Posted February 14, 2014 Share Posted February 14, 2014 (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 February 14, 2014 by BBoyBreaker Link to comment Share on other sites More sharing options...
JohnOne Posted February 14, 2014 Share Posted February 14, 2014 What makes you believe that function only takes 1 parameter? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted February 14, 2014 Share Posted February 14, 2014 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. Link to comment Share on other sites More sharing options...
BBoyBreaker Posted February 14, 2014 Author Share Posted February 14, 2014 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 ? Link to comment Share on other sites More sharing options...
Bert Posted February 14, 2014 Share Posted February 14, 2014 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. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
JohnOne Posted February 14, 2014 Share Posted February 14, 2014 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. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
BBoyBreaker Posted February 14, 2014 Author Share Posted February 14, 2014 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 linkLINK but there is no examples there so can you give me a link please ? Link to comment Share on other sites More sharing options...
JohnOne Posted February 14, 2014 Share Posted February 14, 2014 Could not find the function there. Try looking in example scripts forum. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Bert Posted February 14, 2014 Share Posted February 14, 2014 BBoyBreaker 1 The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Queener Posted February 18, 2014 Share Posted February 18, 2014 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.") Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now