Jump to content

ImageSearch error


Fireho
 Share

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
Link to comment
Share on other sites

  • Moderators

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.

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.

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