06-21-2023 12:07 AM
Hello, I did not speak English, so I used Google Translate.
AutoHotkey has a command called image search.
It is a command to search whether there are 3~4 specific pixels in an image.
Can we implement the same method in LabVIEW?
Or is there a similar method?
06-21-2023 07:38 AM
My understanding is that the command takes a screenshot and then loads an image from a file and searches for the pixels of that image in the screenshot: https://www.autohotkey.com/docs/v1/lib/ImageSearch.htm
Here's code which does most of the heavy lifting (LV 2015, adapted from this example). I'll leave it to you to do the loading of the image and searching inside the array of pixels.
Depending on which file type you use, you might also want to implement the *n (variation) option in the AHK function, which doesn't require the color to match exactly. This is more complicated, because it requires handling the color components of the pixels individually.