Thanks, it works fine now. It'd be perfect if it had one more function. The thing is that the values in each timer's min-max are set just once upon launching of the script. wouldn't it be diffcult to make the values randomized after each timer's restart?
one more thing. I need to add one another pixel checking, but strangely I can't seem to get it work in the script.
First I'm checking the point to get the pixel color.
Code: Select all
CoordMode, Pixel
PixelGetColor, color, 16, 131, RGB
MsgBox %color%
Then i try to add the color from the MsgBox into the script:
Code: Select all
PixelSearch, Px, Py, 0, 131, 500, 131, 0x6E050F, 3, fast
if (Errorlevel = 0)
Send {2}
restartAfter(100, 500)
return
position on y axis is constant, so i'm checking the range on x where is might appear, and somehow it doesn't work. the color certainly appears, but there is no action in the script. game is running directx11, could it be problematic?