Jump to content

Recommended Posts

Posted

Hey!

I'm really new in world of AutoIT and here comes my question.
Is there any way to make script recognise pictures A1 and A2 as the same?
A1:
a1.png.fa1bd92ab86e60be339475224c0bab6d.png

A2:
a2.png.4f6075f2be6b3e6af9de85dc6718e70c.png

"Zoom":
Przechwytywanie.PNG.a18dc28ab285475d70bb84d64dab4f00.PNG
As you can probabaly see on last screen the background pixels are similar but not the same and function _ImageSearch will result 0 casue they are not the same.
I thought that's not a problem cause I will change $tolerance value and it will be ok, but it's not

($findImage,$resultPosition,ByRef $x, ByRef $y,$tolerance, $HBMP=0)

; Description:   Find the position of an image on the desktop
; Syntax:        _ImageSearchArea, _ImageSearch
; Parameter(s):
;                $findImage - the image to locate on the desktop
;                $tolerance - 0 for no tolerance (0-255). Needed when colors of
;                            image differ from desktop. e.g GIF
;                $resultPosition - Set where the returned x,y location of the image is.
;                                    1 for centre of image, 0 for top left of image
;                $x $y - Return the x and y location of the image
;
; Return Value(s): On Success - Returns 1
;                On Failure - Returns 0

Any idea how to deal with it, all kinds of help will be much appreciated :*

Kings regards,
LoK

a2.png

Przechwytywanie.PNG

  • Developers
Posted

@lokatylokacz,
I see you did not read those rules, to which I linked, very carefully - you missed the part that says:

"
Do not repost the same question if the previous thread has been locked - particularly if you merely reword the question to get around one of the prohibitions listed above
"

Do NOT start another thread on this - our patience has limits. :naughty:
Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

  • Jos locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...