Jump to content

Recommended Posts

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

 

Link to post
Share on other sites
On 3/27/2017 at 2:14 PM, IamKJ said:

Can be closed.  Figured it out.

It would be useful to the community to share how you solved it. 

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

    No registered users viewing this page.

×
×
  • Create New...