I'm here because Image Search function is not working for me and i don't know why.
So what i'm trying to do is to find buttoms in the screen when they appear and then click on them (Image Search + Mouse Move + Click + Loop).
This is my code:
Code: Select all
F1::
loop {
ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, 1.bmp
If(ErrorLevel == 0){
Click, %foundX%, %foundY%
}
ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, 2.bmp
If(ErrorLevel == 0){
Click, %foundX%, %foundY%
}
{
ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, 3.bmp
Click, %foundX%, %foundY%
}
I know there is no MouseMove function, i don't know how to insert it.
I hope you can help guys .