Can anyone point me to a tutorial on how to use imagesearch in conjunction with autohotkey?
Thanks,
-Taco
Edit: I've figured out imagesearch, but I've encountered a new problem.
I'm trying to make a small script in autoit using ImageSearch, and I keep getting this error:
My code is as follows:
HotKeySet("{ESC}", "Terminate")
HotKeySet("{NUMPAD1}", "Smith")
WinActivate("Mabinogi")
Sleep(1000)
Global $click1x,$click1y
While 1
Smith()
WEnd
#include <ImageSearch.au3>
Func Smith()
While 1
_ImageSearch("click.bmp",1,$click1x,$click1y,50)
Mousemove($click1x,$click1y)
sleep(500)
MouseClick("Left", $click1x, $click1y, 1)
Sleep(500)
WEnd
EndFunc
Func Terminate()
Exit 0
EndFunc
Any advice?