Code: Select all
This is my code:
Loop
{
ImageSearch, , , 0, 0 , 1920, 1080, D:\Users\Devin\Desktop\gamekit\ratephotos1.PNG
If(ErrorLevel = 0)
{
Click, 1258, 774 ; this needs to be the middle of the image not a point.
Sleep 1500
}
Else if(ErrorLevel = 2)
{
Msgbox, Can't find image
}
ImageSearch, , , 644, 323, 1273, 580, D:\Users\Devin\Desktop\gamekit\ratephotos.PNG
If(ErrorLevel = 0)
{
Click, 835, 435
Sleep 1500
Click, 959, 510
Sleep 3000
}
Else if(ErrorLevel = 2)
{
Msgbox, Can't find image
}
}
F5::ExitApp