Jump to content

Image search clicks when not specified to do so


Mo0C0w
 Share

Recommended Posts

Hey guys!

I have this throughout all of my scripts. When I want to trigger an event I use image search so when image search = 1 than the event would start. The problem is everything works, but when the image is found, it clicks it. I just want it to look for the image and go on when it is found. I do not want it to click. Any help would be great!!

 

Here is a simple one called static_window

#include <ImageSearch.au3>
#include <ScreenCapture.au3>
#include <AutoItConstants.au3>

$x = 0
$y = 0

Func STATIC_WINDOW()
sleep(400)
Do
$search = _imageSearch('static inner window.bmp',0, $x, $y, 0)
      sleep(200)
   Until $search = 1

return 1
EndFunc

As you can see I have no mousemove or mouseclick, but it clicks on the image anyways

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