riceking Posted December 21, 2011 Share Posted December 21, 2011 (edited) Hi, I'm really struggling with _ImageSearch, can anyone help me. I wrote a couple lines and already ran across some errors.#include <ImageSearch.au3> $x1 = 0 $y1 = 0 $0 = _ImageSearch("C:\Users\Administrator\Desktop\MS\0.bmp",1,$x1, $y1, 30) MouseClick("Left",$x1,$y1)Error Given:>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\Administrator\Documents\i.au3" /autoit3dir "C:\Program Files (x86)\AutoIt3" /UserParams +>06:11:48 Starting AutoIt3Wrapper v.2.0.3.0 Environment(Language:0409 Keyboard:00000409 OS:WIN_XP/Service Pack 3 CPU:X64 OS:X64) >Running AU3Check (1.54.19.0) from:C:\Program Files (x86)\AutoIt3 +>06:11:48 AU3Check ended.rc:0 >Running:(3.3.6.1):C:\Program Files (x86)\AutoIt3\autoit3_x64.exe "C:\Users\Administrator\Documents\i.au3" C:\Program Files (x86)\AutoIt3\Include\ImageSearch.au3 (44) : ==> Subscript used with non-Array variable.: if $result[0]="0" then return 0 if $result^ ERROR ->06:11:49 AutoIT3.exe ended.rc:1 >Exit code: 1 Time: 1.855I put ImageSearchDLL.dll in C:\, is that the right place to put it?Many Thanks.Hi,Can anyone provide some help with my line of code, it gives an error.$0 = _ImageSearchArea("C:\Users\Administrator\Desktop\MS\0.bmp",0,353,454,282,406,0,0,0)ERROR: _ImageSearchArea() called with Const or expression on ByRef-param(s).Hi,I'm using ImageSearch, is there a way to return image location in coordinates so I may use the coordinates?Thanks Edited December 25, 2011 by riceking \ Link to comment Share on other sites More sharing options...
JohnOne Posted December 21, 2011 Share Posted December 21, 2011 If you are asking such a question, how are you using Imagesearch? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
riceking Posted December 22, 2011 Author Share Posted December 22, 2011 If you are asking such a question, how are you using Imagesearch?I'm looking at the examples \ Link to comment Share on other sites More sharing options...
JohnOne Posted December 22, 2011 Share Posted December 22, 2011 Great, that's a good start, so from looking at those examples, can you determine the return values from the function? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
riceking Posted December 25, 2011 Author Share Posted December 25, 2011 I've run into a strange error with the ImageSearch.au3 source. Can anyone help me please? Thanks, Eric \ 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