Jump to content
Sign in to follow this  
xgend

Error using ImageSearch

Recommended Posts

xgend

Hi guys, first post here. Sorry for being a newbie but I have tried everything. I just downloaded the ImageSearch library and place it in the proper directory. Now, there was this demo which I tried but unfortunately I got this error:

Line -1:

Error: Subscript used with non-Array variable

I thought it must have been some coding error. I stripped it down to the bare essentials - leaving me with this very simple code:

#include <ImageSearch.au3>

$x1=0
$y1=0
$result = _ImageSearch("xyz.gif",1,$x1,$y1,0)
if $result = 1 then
    msgbox(0,"Result","Found!")
else
   msgbox(0,"Result","Not Found!")
endif

And the error still persists. I tried searching for the answer but sadly, I can't seem to find them. Am I missing anything? Thanks a lot.

Share this post


Link to post
Share on other sites
Sundance

Hi and welcome to the forum :)

Do you have the ImageSearchDLL.dll in the same directory as the AU3?

greetz

Sundance

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.