sleep(4000)
$coord = PixelSearch(513, 336, 739, 344, 0x2A1513)
$old=$coord[0]
While 1=1
$coord = PixelSearch(513, 336, 739, 344, 0x2A1513)
If Not @error Then
If $old<$coord[0] then send("3")
ElseIf $old>=$coord[0] then send("2")
$old=$coord[0]
sleep(850)
EndIf
EndIf
sleep(10)
WEnd