Fireho Posted November 16, 2014 Share Posted November 16, 2014 (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 November 16, 2014 by Fireho Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted November 16, 2014 Moderators Share Posted November 16, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now