Jump to content

Image Search Transparency Parameter


Recommended Posts

hi guys

i am using imagesearch2015 library. (used another one before)

but transparency parameter doesn't working. how i can solve this problem.

 

here's my code

#include "ImageSearch2015.au3"
#include <Date.au3>
; Script Start - Add your code below here
Global $x = 0
Global $y = 0

HotKeySet("{UP}","hey")
HotKeySet("{DOWN}","heyo")

Func hey()
    $balikcisaniye = _Date_Time_GetTickCount()
    $array = _ImageSearchArea("bul.bmp", 1, 0, 0, @DesktopWidth, @DesktopHeight, $x, $y, 2,0x000000)
    if($array = True) Then 
        $balikcisaniye1 = _Date_Time_GetTickCount()
        MouseMove($x,$y)
        MsgBox(1,"","Found." & $x & "-" & $y & " / " & $balikcisaniye1-$balikcisaniye)
    Else
        MsgBox(1,"","Not Found.")
    EndIf
EndFunc

Func heyo()
    exit
EndFunc

while 1
WEnd

when i disable transparency parameter, it work normal. but with parameter, this function is always returning false.

please help.

 

here's library i use :

 

 

Link to comment
Share on other sites

  • Developers

@MASKED,
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.
  :)

Link to comment
Share on other sites

  • Jos locked this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...