NewbieProgammer

ImageSearch

3 posts in this topic

#1 ·  Posted

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

 

Share this post


Link to post
Share on other sites



#2 ·  Posted

Update i tried the simplest Code on a new au3 and it my cursor doesnt even move, any help pls how can i move my cursor

MouseMove(200,200,20)

 

Share this post


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