hello pal, i am try to make a loop of your way, but no luck, could you please take a look and tell me whats happening...
#include <array.au3>
#include <myImageSearch.au3>
func exittheprog ()
Exit
EndFunc
HotKeySet( "{F10}", "exittheprog" )
while 1
sleep(1000)
MouseMove(969,844)
MouseClick("left")
;########## Number0 ##########
Global $Number0
Global $time1
Global $ImageSearch = @ScriptDir & "images0.bmp"
Global $x = 0
Global $y = 0
Global $w = @DesktopWidth
Global $h = @DesktopHeight
Global $ColorTrans = ''
Global $mOnlyFirst = True
Sleep(10)
$time1 = TimerInit()
$Number0 = myImageSearch_Desktop($ImageSearch, $x, $y, $w, $h, $ColorTrans, $mOnlyFirst)
If @error Then ConsoleWrite("sorry image not exist" & @CRLF)
ConsoleWrite("time 1: " & TimerDiff($time1) / 1000 & ' sek.' & @CRLF)
If IsArray($Number0) Then
MouseMove(1443,457)
MouseClick("left")
send ("0")
Send ("{ENTER}")
Else
MouseMove(969,844)
MouseClick("left")
EndIf
sleep(1000)
MouseMove(969,844)
MouseClick("left")
;##################################
WEnd