Sign in to follow this  
Followers 0
Dalfrus

Problem with ImageSearch.au3

3 posts in this topic

: ==> Subscript used with non-Array variable.:
if $result[0]="0" then return 0
if $result^ ERROR

Hi everybody :bye: , i'm new in posting, so if i have a mistake or something please tell me, and i will fixed.

I get that error, and I've been looking at all the pages, web sites and post but nothing really helps.

This is my script:

#include <ImageSearch.au3>

$x = 0
$y = 0

$Search = _ImageSearch("Foto.jpg", 0, $x, $y, 50)
If $Search = 1 Then MouseMove($x, $y, 0)

If anyone can help me i will be very gratefull. :

Share this post


Link to post
Share on other sites



Seems who the function return an array and you are trying use how a string

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

i solved the problem :thumbsup:

the problem was that i was using the wrong version of ImageSearchDLL.dll and ImageSearch.au3.

For anyone who has this problem, this is the solution:

1.- Download the newest version of AutoIT and ImageSearch

          -   You can download the newest version of AutoIT in the web page of AutoIT,

          -   ImageSearch newest version - ( '?do=embed' frameborder='0' data-embedContent>> )

2.- Be sure that you have only 1 version of ImageSearchDLL.dll and ImageSearch.au3 in your computer.

3.- Put the files on the same folder than your script.

And there is it, good luck and thanks!  :sorcerer:

Edited by Dalfrus

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  
Followers 0