Jump to content

Error using ImageSearch


xgend
 Share

Recommended Posts

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.

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...