This is a very simple PixelSearch script im using to simply search for colour and click, over and over. I am in a room full of the same monster. When i click i instant kill one of the monsters.
The problem im having is that this keeps spam clicking the same monster, as it is doing its death animation. I need to quickly move onto the next monster to improve efficiency.
How can i make this script, click the colour its searching for, and search for the next npc(same colour) and repeat. Never clicking the same monster twice.
Im open to any and all suggestions to improve this script.
Thanks
Mik
Code: Select all
F1::
Loop , 1000
{
CoordMode, Pixel, Window
PixelSearch, FoundX, FoundY, 8, 34, 522, 367, 0x555B53, 0, Fast RGB
If (ErrorLevel = 0)
{
If ErrorLevel = 0
Click, %FoundX%, %FoundY% Left, 1 ; Click on it.
sleep 100
}
}
return
Esc::
Suspend
Pause,, 1
Return