Hello I am new to writing scripts and was wondering if anyone experienced can let me know what I am doing wrong with mine. I know there are betters scripts out there to download but I was hoping to build the experience myself. Basically, it's not detecting the image with this script I wrote:
Also I think the loop in the middle is probably wrong since i'm not sure if it will continue after finding the image, but I just haven't gotten that far to see.
I also tried making the area tighter (944, 472, 988, 547) and using JPG but those weren't working out either. Btw the placement for the texts should be correct but the copy and paste isn't putting them in the write spots.Quote:
F11::
Loop
{
Send {E}
Loop
{
imageSearch, FoundX, FoundY, 0, 0, 1920, 1080,
C:\Users\Downloads\imagesearchfis\fish.png
if (ErrorLevel = 0)
Send {E}
}
Sleep 8000
}
*ESC::ExitApp
Also I think the loop in the middle is probably wrong since i'm not sure if it will continue after finding the image, but I just haven't gotten that far to see.