I need to find an image (detect text in game) using transparency (the background is changing every few seconds). My script:
#include <ImageSearch.au3>
HotKeySet("s", "Start")
$x = 0
$y = 0
Func Start()
$Search = _ImageSearchArea("*Trans0x40FF00 " & "trans_test.png",1,90,90,@DesktopWidth,@DesktopHeight,$x,$y,50)
If $Search = 1 Then
MouseMove($x, $y,10)
EndIf
EndFunc
While 1
Sleep(100)
WEnd
It doesn't work. My image to search has a bright green colour 0x40FF00
all around, representing transparency. How to make my image match?