Can't get *Trans to work with ImageSearch

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Ghoti
Posts: 24
Joined: 01 Dec 2022, 07:41

Re: Can't get *Trans to work with ImageSearch

Post by Ghoti » 03 Dec 2023, 14:02

andymbody wrote:
03 Dec 2023, 13:54
Ghoti wrote:
03 Dec 2023, 13:47
At exactly variation 218 the image is found, and the mouse moves to the correct location
Can't get any tighter than that... lol

Try this image (make sure it is the correct size first). Also note that it is a png rather than bmp.

counter_12-3a.png
That worked! Your image is actually 1 pixel larger in both directions, but it worked anyway, starting at variation 35+. So clearly, even in Paint 3D, i'm messing up somewhere. For the sake of learning, i'm going to try to do my own again, but this time use PNG. Thank you both for all the help!

User avatar
andymbody
Posts: 1027
Joined: 02 Jul 2017, 23:47

Re: Can't get *Trans to work with ImageSearch

Post by andymbody » 03 Dec 2023, 14:16

Ghoti wrote:
03 Dec 2023, 14:02
That worked!

Excellent! Just for reference, in case you are interested... here were my make/break settings
*TransFFFFFF *27

And I used PS background eraser (with very old PS version), to erase the white from your original image that you posted. It's rarely used tool, but sometimes it does a great job, when others do not. Of course the latest versions of PS probably has better results and can probably tackle much more complex backgrounds.

Ghoti
Posts: 24
Joined: 01 Dec 2022, 07:41

Re: Can't get *Trans to work with ImageSearch

Post by Ghoti » 03 Dec 2023, 14:34

andymbody wrote:
03 Dec 2023, 14:16
Ghoti wrote:
03 Dec 2023, 14:02
That worked!

Excellent! Just for reference, in case you are interested... here were my make/break settings
*TransFFFFFF *27

And I used PS background eraser (with very old PS version), to erase the white from your original image that you posted. It's rarely used tool, but sometimes it does a great job, when others do not. Of course the latest versions of PS probably has better results and can probably tackle much more complex backgrounds.
I'm still using PS CS6, but i've never noticed that background eraser tool. I'm going to give that a shot and see how it does. Thanks!

User avatar
andymbody
Posts: 1027
Joined: 02 Jul 2017, 23:47

Re: Can't get *Trans to work with ImageSearch

Post by andymbody » 03 Dec 2023, 14:44

Ghoti wrote:
03 Dec 2023, 14:34
I'm still using PS CS6...
lol... one version behind me. The results of the subscription version is impressive (and much less time consuming), but too much automation just takes the fun and challenge out of it. Of course PS2014 is much different from v2 where I started in the early 90's, and I don't think I want to go back to the stone age either.

Ghoti
Posts: 24
Joined: 01 Dec 2022, 07:41

Re: Can't get *Trans to work with ImageSearch

Post by Ghoti » 03 Dec 2023, 14:49

andymbody wrote:
03 Dec 2023, 14:44
Ghoti wrote:
03 Dec 2023, 14:34
I'm still using PS CS6...
lol... one version behind me. The results of the subscription version is impressive (and much less time consuming), but too much automation just takes the fun and challenge out of it. Of course PS2014 is much different from v2 where I started in the early 90's, and I don't think I want to go back to the stone age either.
Yeah, i would actually love to try the new versions, but I can't justify a subscription for it. CS6 does what I need it to do. I wasn't really understanding the background eraser tool (it was still causing transparency changes) quickly, so I just went back into paint, and this time instead of using the eraser tool, i used the pen tool to color the background white. I saved it as PNG, and it worked fine. I've learned some things today. Thank you!

User avatar
andymbody
Posts: 1027
Joined: 02 Jul 2017, 23:47

Re: Can't get *Trans to work with ImageSearch

Post by andymbody » 03 Dec 2023, 15:15

boiler wrote:
03 Dec 2023, 02:38
I think that (tool idea) is an excellent idea.
I think I may also update my ImageSearch wrapper to include this and some basic ImageSearch debugging tools like toggling a visual bounding box around search area, optional auto-variation (which can also report the most ideal variation setting for a particular needle/haystack combo) etc. I have lots of other auto-debug ideas in mind for it as well. Would you be interested in co-author and assistance with the mcode as needed?

User avatar
boiler
Posts: 17710
Joined: 21 Dec 2014, 02:44

Re: Can't get *Trans to work with ImageSearch

Post by boiler » 03 Dec 2023, 17:36

I still have CS5 if it makes you feel better. ;) I don’t use it like I used to that would justify upgrading.

Post Reply

Return to “Ask for Help (v1)”