Jump to content

ImageSearch


Recommended Posts

So im new to Autoit and started to make a basic script that finds a small image within a larger image my problem is the programs detects the image but the mouse doesnt move to its location

#include <ImageSearch2015.au3>

$x = 0
$y = 0

$picture = "test.bmp"

Do
   $result = _ImageSearch($picture, 1, $x , $y, 0, 0)

   ConsoleWrite($x)
     ConsoleWrite(".......")
   ConsoleWrite($y)
until $result = 1;
Sleep(2000)

if $result = 1 Then

MouseMove($x, $y, 20)


 ConsoleWrite("Image Found")
 
Else
   MsgBox(0, "MSG", "End")
EndIf

 

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
 Share

  • Recently Browsing   0 members

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