Jump to content
Sign in to follow this  
GYJohn

Imagesearch error

Recommended Posts

GYJohn

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

Share this post


Link to post
Share on other sites
InunoTaishou

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.

Share this post


Link to post
Share on other sites
AutoBert

As error is in ImageSearch.au3 contact the autor and tell him about the error.

Share this post


Link to post
Share on other sites
GYJohn

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

 

Share this post


Link to post
Share on other sites
AutoBert
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.

Share this post


Link to post
Share on other sites
GYJohn

I downloaded the imagesearch.au3 from here i think. Or from .de

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.