i wanted to afk or have some break while leveling my character,the green box are the monster yea i messed around inside game files and edited it with photoshop lol,
my script is doing perfectly fine and attacking monster, but how can I make pixelsearch/attack only in the middle screen? to avoid my character from deaths. It doesn't work i dont know why. can you suggest me what's wrong?
CoordMode, Pixel, Relative
SetMouseDelay, -1
Home:: press home to start
;assuming to search in a reactangle area 200x200px
leftBound := A_ScreenWidth / 2 - 100
rightBound := A_ScreenWidth / 2 + 100
topBound := A_ScreenHeight / 2 - 100
bottomBound := A_ScreenHeight / 2 + 100
Loop {
PixelSearch, X, Y, leftBound, topBound, rightBound, bottomBound, 0x00FF00, 0, fast
if(ErrorLevel=0)
{
MouseClick, left, %X%, %Y%
}
else {
Send {F9}
sleep, 50
}
}
return
PgUp::Pause
End::ExitApp