Fireho 0 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 Share this post Link to post Share on other sites
SmOke_N 210 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. Share this post Link to post Share on other sites