Jump to content
Sign in to follow this  

Autoit - Image Search

Recommended Posts



First i would like to say what i made 

i download ImageSearch x64 from there   

 Then i make New folder on Desktop and i put inside this 2 files in this folder + bmp file + my script

My script looks like that:

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include "ImageSearch.au3"

HotKeySet("p", "checkForImage")

global $y = 0, $x = 0

Func checkForImage()
Local $search = _ImageSearch('aaaaa.bmp', 0, $x, $y, 0)
if not @error then
MouseMove($x, $y, 10)
traytip('Imagesearch','Znaleziono. $x='&$x&' y='&$y,5)
    traytip('Imagesearch','nie znaleziono...',5)

while 1

when i try to click P to search for image i have this error ....


what can be wrong ... i cant find solution for that ...

Share this post

Link to post
Share on other sites

The error is in the Imagesearch,au3, seems the errorhandling isn't good enough. First copy the  Imagesearch.dll in same folder as your script, if always error tell it the autor of Imagesearch.au3.

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

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.