Jump to content

Recommended Posts

Posted

I have ran into some issues with image search.  Every time I run the script, it never finds the image in the browser, but if I open the image directly on the desktop, it'll find it no problem.

 

Why is this? Any way around it?

 Func ImageSearchFarm ()
     Local $picture = 'C:\Users\Jammmesss\Desktop\AutoIt\New folder\Icon.png'
     Local $x1 = 0
     Local $y1 = 0
     Do
         $result = _ImageSearch($picture,1,$x1,$y1,0,0)

         ConsoleWrite ($result)
     until $result = 1;
     if $result=1 Then
         MouseMove($x1,$y1,50)
     else
         MsgBox (0,'MSG','End')
EndIf
     EndFunc

 

Posted

First thing you must to include the library..  #include <ImageSearch.au3>

But i dont know why when i run your example show me.. Subscript used on non-accesible variable.. did you got this message too or not?

Posted

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...