Dalfrus Posted April 6, 2014 Share Posted April 6, 2014 : ==> Subscript used with non-Array variable.: if $result[0]="0" then return 0 if $result^ ERROR Hi everybody , i'm new in posting, so if i have a mistake or something please tell me, and i will fixed. I get that error, and I've been looking at all the pages, web sites and post but nothing really helps. This is my script: #include <ImageSearch.au3> $x = 0 $y = 0 $Search = _ImageSearch("Foto.jpg", 0, $x, $y, 50) If $Search = 1 Then MouseMove($x, $y, 0) If anyone can help me i will be very gratefull. Link to comment Share on other sites More sharing options...
GordonFreeman Posted April 7, 2014 Share Posted April 7, 2014 Seems who the function return an array and you are trying use how a string Frabjous Installation Link to comment Share on other sites More sharing options...
Solution Dalfrus Posted April 7, 2014 Author Solution Share Posted April 7, 2014 (edited) i solved the problem the problem was that i was using the wrong version of ImageSearchDLL.dll and ImageSearch.au3. For anyone who has this problem, this is the solution: 1.- Download the newest version of AutoIT and ImageSearch - You can download the newest version of AutoIT in the web page of AutoIT, - ImageSearch newest version - ( '?do=embed' frameborder='0' data-embedContent>> ) 2.- Be sure that you have only 1 version of ImageSearchDLL.dll and ImageSearch.au3 in your computer. 3.- Put the files on the same folder than your script. And there is it, good luck and thanks! Edited April 7, 2014 by Dalfrus 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