Jump to content

Newbi Loop


Recommended Posts

Hello everyone.


Its been a while since i last time used AutoIt..  Now i have to start from beggining. 

Doing Simple training with ImageSearch


and have something like that

#include <ImageSearch2015.au3>

$x = 0
$y = 0
$waitTime = 2
$picture = "obraz.bmp"

$result = _WaitForImageSearch($picture, $waitTime, 1, $x, $y, 0, 0)

    If $result = 1 Then
        Send("Okey Found It.") 


Well trying to figure out how to create loop to make him looking for image every 1 or 2 seconds untill he finds it.

If Result = 0 Then looking again 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...