Ok now already join in 1 script
and now i want to make it to pause all function every 30 minutes for clearing my inventory...i got confuse with timerint() and timerdiff()
and also all command still running together what should i use ?
for example if ok.png show at screen i want to pause cast.png until ok.png done
here is my script
thx before for your help
#include <ImageSearch.au3>
HotKeySet("+1", "Start")
HotKeySet("!1", "_Exit")
$X = 0
$Y = 0
$X1 = 0
$Y1 = 0
$X2 = 0
$Y2 = 0
$X3 = 0
$Y3 = 0
While 1
Sleep(100)
WEnd
Func Start()
While 1
$cast = _ImageSearch('cast.png', 0, $X, $Y, 0)
$strike = _ImageSearch('strike.png', 0, $X1, $Y1, 0)
$reward = PixelSearch(0, 0, 1370, 730, 0x7F5400)
$rewardok = _ImageSearch('OK.png', 0, $X2, $Y2, 0)
$hook = PixelSearch(0, 0, 1370, 730, 0x826740)
$collect = PixelSearch(0, 0, 1370, 730, 0x3A9B28)
$levelup = _ImageSearch('levelup.png', 0, $X3, $Y3, 0)
If $cast = 1 Then
_cast()
ElseIf $strike = 1 Then
MouseClick("Left", $X1, $Y1, 1, 10)
ElseIf IsArray($reward) = True Then
MouseClick("Left", $reward[0], $reward[1], 1, 10)
Sleep(300)
MouseClick("Left", $X2, $Y2, 1, 10)
ElseIf $rewardok = 1 Then
MouseClick("Left", $X2, $Y2, 1, 10)
ElseIf IsArray($hook) = True Then
MouseClick("Left", $hook[0], $hook[1], 1, 10)
ElseIf IsArray($collect) = True Then
MouseClick("Left", $collect[0], $collect[1], 1, 10)
ElseIf $levelup = 1 Then
MouseClick("Left", $X3, $Y3, 1, 10)
EndIf
WEnd
EndFunc
Func _cast()
Sleep(1500)
MouseClick("Left", $X, $Y, 1, 10)
EndFunc
Func _Exit()
Exit
EndFunc