Hello ppl, well ive started over 2 weeks ago in this autoit world, and i cant seem to make imagesearch work for my next bot. Im gonna paste the code here and tell the problem:
Code:
Func gg()
print("Searching")
$found = False;
$x = 746
$y = 482
While Not $found
$coord =_ImageSearch(@ScriptDir &"\boss.png", 1, $x, $y, 0)
If Not @error Then
Sleep(500)
MouseClick("left", Round(746 * $x_ratio), Round(482 * $y_ratio), 1, 10)
ExitLoop
Else
Sleep(100)
EndIf
WEnd
Return True
EndFunc
Ive added #include<imagesearch.au3>
but the calls error when he gets to this part of the code, ive set imagesearch in the same directory and auto it shuwtdowns when it gets to this part.
if i delete imagesearch.au3 from the same directory it says it has problems opening the file imagesearch.au3
any ideas¿¿¿