GYJohn Posted March 19, 2016 Posted March 19, 2016 Hello guys, i downloaded the imagesearch.au3 and dll and put in programms/autoit/include Now i get this error: Autoit\ImageSearch.au3" (44) : ==> Subscript used on non-accessible variable.: if $result[0]="0" then return 0 Downloaded from here: Any ideas? A
InunoTaishou Posted March 19, 2016 Posted March 19, 2016 This has been asked so many times on the forums and even in the post itself. You need to check that $result is an array.
AutoBert Posted March 19, 2016 Posted March 19, 2016 As error is in ImageSearch.au3 contact the autor and tell him about the error.
GYJohn Posted March 20, 2016 Author Posted March 20, 2016 Yeah this is an error in the imagesearch.au3. And i got no array $result at my main program #include <ImageSearch.au3> HotKeySet("F1", "sucheBild") global $y = 0, $x = 0 while 1 sleep(200) WEnd Func sucheBild() Local $suche = _ImageSearch('1.jpg', 0, $x, $y, 0) If $suche = 1 Then MouseMove($x, $y, 1) EndIf EndFunc
InunoTaishou Posted March 20, 2016 Posted March 20, 2016 Try this If (IsArray($array) and $array[0] = "0") Then
AutoBert Posted March 20, 2016 Posted March 20, 2016 21 minutes ago, GYJohn said: And i got no array $result at my main program but in line 44 ImageSearch.au3 a array is expected, s you have t correct the ImageSearch.au3 or contact author that he does.
GYJohn Posted March 20, 2016 Author Posted March 20, 2016 I downloaded the imagesearch.au3 from here i think. Or from .de
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now