Jump to content

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
        Run("notepad.exe")
        Sleep(2000)
        Send("Okey Found It.") 
    Else
        Sleep(2000)
    EndIf
    


    

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 post
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...