I have a problem.
my codes will not work.
#include <ImageSearch.au3>
$x1=0
$y1=0
HotKeySet( "+s", "Start" )
HotKeySet( "+e", "end" )
While 1
Sleep (100)
WEnd
Func Start()
While 1
$result = _ImageSearch("recycle2.bmp",1,$x1,$y1,0)
if $result=1 Then
MouseMove($x1,$y1,3)
MsgBox(0,"Found","Found a empty recycle bin here...")
EndIf
WEnd
EndFunc
Func End()
Exit
EndFunc
and
#include <ImageSearch.au3>
$x1=0
$y1=0
HotKeySet( "+s", "Start" )
HotKeySet( "+e", "end" )
While 1
Sleep (100)
WEnd
Func Start()
While 1
$result = _ImageSearchArea("recycle2.bmp",1,0,0,200,200,$x1,$y1,0)
if $result=1 Then
MouseMove($x1,$y1,3)
MsgBox(0,"Found","Found a empty recycle bin in top left corner")
EndIf
WEnd
EndFunc
Func End()
Exit
EndFunc
but, this code working.
#include <ImageSearch.au3>
$x1=0
$y1=0
$result = _ImageSearch("recycle.bmp",1,$x1,$y1,0)
if $result=1 Then
MouseMove($x1,$y1,3)
MsgBox(0,"Found","Found a recycle bin with stuff here...")
EndIf
$result = _ImageSearchArea("recycle.bmp",1,0,0,200,200,$x1,$y1,0)
if $result=1 Then
MouseMove($x1,$y1,3)
MsgBox(0,"Found","Found a recycle bin with stuff in top left corner")
EndIf
Plz help me.