Code:
#include <ImageSearch.au3>
HotKeySet("{ESC}", "Terminate")
$x = 0
$y = 0
Func Terminate()
Exit
EndFunc
#Region
Dim $myPics[10]
$myPics[0] = 2
$myPics[1] = 'dona.png'
$myPics[2] = 'altre.png'
$res = _WaitForImagesSearch($myPics,5,1,$x,$y,100)
Switch $res
Case 0
MsgBox(0,'','nessuno trovato')
Case 1
While True = True
Sleep(300)
MouseClick("left",$x, $y)
MouseClick("left",$x, $y)
Wend
MsgBox(0,'','donazione trovata')
Case 2
While True = True
sleep(300)
MouseMove($x,$y,100)
mouseclick("left")
MsgBox(0,'','richieste trovate')
Wend
EndSwitch
in Case 1 i want once image hide( because if I click this image it hide) it click the next same image. When all same images are all hide , the script work to step 2..
Someone can help me? please i'm searching all over the web but i don't find nothing about this. Thanks






