Hello every one,   I wrote this function which can be used to do a task in the main loop without using : Sleep() inspired : https://www.autoitscript.com/forum/topic/198580-check-every-10sec-_imagesearch/ .... Here is the function : ;Timer_Task.au3 #include <Array.au3> #Region Example Local $counter = 1 While True _Loop_Task("_Test()", 1, 1000) ConsoleWrite("Counter: " & $counter & @