I have bunch of pictures in a directory. I want to make a script scanning for those pictures on screen, and when one of them appears, Send file name of the picture.
Code: Select all
Pics := []
Loop, Files, *.bmp, R
{
Pics.Push(LoadPicture(A_LoopFileFullPath))
}
while(true)
{ for i in Pics{
ImageSearch, FoundX, FoundY,X,Y,I,J,Pics[i]
if ErrorLevel = 0
Send, ;name of picture and {Enter}
}
}