Jump to content
Sign in to follow this  

ImageSearch error

Recommended Posts


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.


$s_path = "C:somepathsome.exe"



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

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.

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.