Sign in to follow this  
Followers 0
Fireho

ImageSearch error

2 posts in this topic

#1 ·  Posted (edited)

Hi, when I try to use _ImageSearch i have an error:

"C:\Program Files (x86)\AutoIt3\Include\ImageSearch.au3" (44) : ==> Subscript used on non-accessible variable.:
If $result[0] = "0" Then Return 0
If $result^ ERROR

I'm using 64-bit version from this topic:

'?do=embed' frameborder='0' data-embedContent>>

Error exists no matter what image I search, what arguments I will give. Image is 24-bit .bmp.

How to fix this?

Edit: Okay, another version of ImageSearch is working perfectly.

Edited by Fireho

Share this post


Link to post
Share on other sites



You're probably passing a literal string, the function may possibly require a ByRef variable which forces you to put the string in its own memory/variable space.

eg.

$s_path = "C:somepathsome.exe"

_callfunctionnamehere($s_path)

or

You didn't assign the "C:something" to a variable at all.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

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