Jump to content

Imagesearch error


Recommended Posts

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

Link to comment
Share on other sites

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

 

Link to comment
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
 Share

  • Recently Browsing   0 members

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