Sleep(1000)
ControlSend("Lineage II", '', '', '{F1}')
Sleep(1000)
$hWnd1 = WinGetHandle('Lineage II')
ControlClick($hWnd1,"","","","1","550","60")
Sleep(5750)
$hwnd = WinGetHandle("Lineage II")
FFsetWnd($hwnd)
#include <FastFind.au3>
AdlibRegister("_chk_loc")
Func _chk_loc()
$Neutral = FFColorCount(0xff866b, 0, True, 165, 40, 180, 360)
If $Neutral = FFColorCount(0xc5ecc5 0, True, 165, 40, 180, 360) Then
ControlSend("Lineage II", '', '', '{Space}')
EndIf
EndFunc