Jump to content

Recommended Posts

Posted

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 ...

Posted

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.

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
  • Recently Browsing   0 members

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