Found image Start the loop
and after you found image serach for the pixel
and when you found pixel Send Space
but it dosent work really good if someone can help me please
Code: Select all
F1::
Macro1:
Loop
{
CoordMode, Pixel, Screen
ImageSearch, FoundX, FoundY, 903, 551, 1027, 662, C:\Users\ofir\AppData\Roaming\MacroCreator\Screenshots\Screen_20160704135654.png
If ErrorLevel = 0
{
CoordMode, Pixel, Screen
PixelSearch, FoundX, FoundY, 998, 536, 1018, 575, 0xFABDB7, 0, Fast RGB
If ErrorLevel = 0
{
Send, {Space}
}
}
}
Return