Hi guys. I'm having trouble getting ImageSearch to work with Bluestacks. I've bene using AutoHotKey for more than a decade, and have successfully used ImageSearch with games in the past. For some reason I've never been able to get it to work within the game that I play inside Bluestacks. It doesn't matter how small of a range I give it to look in, or how high I set the color variance, it will never find a match. An example of the code I use is below, as well as example images. I'm certain that my coordinates are correct. I've also tried it with much bigger target images than this example with the same results. Any ideas?
Code: Select all
ImageSearch, varX, varY, 195, 385, 226, 405, *12 fire9.jpg
if (ErrorLevel = 2)
MsgBox Could not conduct the search.
else if (ErrorLevel = 1)
MsgBox Image could not be found on the screen.
else
MsgBox The image was found at %varX%x%varY%.
This is a screenshot of the Bluestacks window. I'm searching for the number 8, after the word "Suppression", under the fire icon.
This is the image i'm using to search with:
Any help you can offer would be appreciated. Thanks!
-Ghoti
[Mod action: Topic moved to "Gaming"]