Sign in to follow this  
Followers 0
suNtrick

Autoit - Image Search

2 posts in this topic

Hello 

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 ****
#AutoIt3Wrapper_UseX64=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include "ImageSearch.au3"

HotKeySet("p", "checkForImage")

global $y = 0, $x = 0

Func checkForImage()
    traytip('Imagesearch','Szukam...',5)
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)
Else
    traytip('Imagesearch','nie znaleziono...',5)
EndIf
EndFunc

while 1
sleep(200)
WEnd


when i try to click P to search for image i have this error ....
http://scr.hu/2src/9bn0p
 

 

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  
Followers 0