Variability when Image Searching

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
cleetz
Posts: 30
Joined: 04 Feb 2023, 15:09

Variability when Image Searching

Post by cleetz » 22 May 2023, 19:53

Hello. What do I add to an image detect code to create a variability for the detected image? I am trying to fix my music stream from stopping playing for whatever reason it is always crashing, and I wrote a script to get it to press play if it detects that it stopped playing. However the image detection wont work because the area im image detecting has slight changes in colors and the pixels shift slightly or something because the image detect wont work on it. Hoping to add a range of possible acceptable images so its a little more lenient. Thanks for Your time.

User avatar
mikeyww
Posts: 27372
Joined: 09 Sep 2014, 18:38

Re: Variability when Image Searching

Post by mikeyww » 23 May 2023, 06:28

Hello,

Have a look at the variation option in the documentation. ImageSearch

cleetz
Posts: 30
Joined: 04 Feb 2023, 15:09

Re: Variability when Image Searching

Post by cleetz » 23 May 2023, 09:38

Thanks for the link. Ok for Me it can be hard to learn without a proper example showing exactly what to do but I got it . Between *1 to *255 and You put it just before the name of the file with a space before . Thanks again

cleetz
Posts: 30
Joined: 04 Feb 2023, 15:09

Re: Variability when Image Searching

Post by cleetz » 23 May 2023, 09:43

Here is an example for anyone skimming forums for this answer

Code: Select all

ImageSearch,ix,iy,0,0,a_screenHeight,a_screenWidth, *165 C:\Users\clayt\Desktop\Jpegs\TestWaterBarrelRightClicked.png

Post Reply

Return to “Ask for Help (v1)”