Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Image detecting problem

$
0
0
I'm trying ImageSearch and cannot get it to work. Here is the code.

[ autoit ]      
; Func detectImage() Local $coord[2] ImageSearch, $coord[0], $coord[1], 1052, 20, 1082, 35, (@ScriptDir & "\images\boost.jpg") *2 if ErrorLevel = 2 MsgBox Could not open image else if ErrorLevel = 1 MsgBox Image is not found on the screen else MsgBox Image found EndFunc

Basically I'm getting syntax error on a line 3 and char 13 which is not logical since everything match example in docs http://www.autohotkey.com/docs/commands/ImageSearch.htm

Any tips or ideas are highly appreciated.

P.S.
Few additional questions:

What is most common number of *n (variation) in ImageSearch for best matching capability? (I currently have put 2)
What is best format to save screen-shoot in?
Is there any other way of matching picture in active window that is maybe better that this one?

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>