_ImageSearch with $transparency

4 posts in this topic

Does anyone have experience with transparency on _ImageSearch?  The code attached finds the image "base.bmp" but at position 0,0 not near the center of the screen as it appears. My goal is to find the Big Blue "G" regardless of the background.  I have not yet found the base image, so I have not tested changing the background. Do you have to use image formats that support transparency?  If so, how would you capture the image from within autoit code and set the transparency color?




Share this post

Link to post
Share on other sites

Play with param tolerance, but there are better ways to automate a app than imagesearch? So, which app?

Share this post

Link to post
Share on other sites

Thanks for the comment.   If I can't get transparency to work, i will try more with tolerance, but tolerance is difficult if the background changes a lot.

Share this post

Link to post
Share on other sites

And don't forget mousecoursor is also on screen, so when it's no game just just name the app.

Share this post

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

  • Similar Content

    • Yirrlaar
      By Yirrlaar
      Here is the thing, I have a picture that has "duplicate" items of what I am searching for.
      I used the windows "paint" to crop a small section of the OVERALL screenshot to use as my search item.
      Now, I have NO issues running the script, as it finds what I am looking for RIGHT AWAY!!! YEAH!!!!
      But if I were to edit the original picture and "remove" the 1st image it finds (the one I "cropped" out) and run the script again, it never finds any of those duplicate images and they are a direct copy & paste of the original image i am trying to find.
      $result = _ImageSearch($picture,0,$x1,$y1,100,0) Is there any other Image Search au3 out there that can made find multiple versions of an image?
    • computergroove
      By computergroove
      I am trying to integrate imagesearch into a script I am making. When I try to compile the script I get the following inside imagesearch.au3 under all 4 of the imagesearch.au3 defined functions:
      "Error: Missing separator character before keyword"
      I tried the beta version of Autoit and it is doing the same thing. I am using the x32 version of the imagesearch.au3 found here -,d.amc
      I have put the imagesearchDLL.dll in both the includes directory and the system32 directory. I am using x64 Windows 8.1 Pro. I cant see anything wrong. Please help.