Jump to content
PLeaseHAlpmai

My image search script isnt working.

Recommended Posts

PLeaseHAlpmai

Below is my script, I'm quite new so explain it to me like I'm 5. Thanks!

 

 

 

#include <ImageSearch.au3>

HotKeySet("p", "checkForImage")

global $y = 0, $x = 0

Func checkForImage()
Local $search = _ImageSearch('C:\Users\Mir\Desktop\Neuer Ordner (2)\a.PNG', 0, $x, $y, 0)
If $search = 1 Then
MouseMove($x, $y, 10)
EndIf
EndFunc

while 1
sleep(200)
WEnd

Share this post


Link to post
Share on other sites
KickStarter15

Hi,

Welcome to Autoit forum. Try checking this link and for the library here.

 

KS15

  • Like 1

Programming is "To make it so simple that there are obviously no deficiencies" or "To make it so complicated that there are no obvious deficiencies" by C.A.R. Hoare.

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

×