Jump to content

_ImageSearch Help Please!


riceking
 Share

Recommended Posts

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

I 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 by riceking

\

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