Never used ahk before, but couldn't you just create a loop for the img search and if img coords != null (or 0), the run the mouse click part.
so...making a new hp autoloot and i was wondering if anyone could make it so it always checks/picks up the hp pot without any activation key...
If anyone can get this working i will release a full autoloot scriptCode:RButton:: MouseGetPos, mousePosX, mousePosY WinGetPos, , , winSizeX, winSizeY, A ImageSearch, imageLocX, imageLocY, 0, 0, %winSizeX%, %winSizeY%, pic\hppot.png Click %imageLocX%, %imageLocY%, 2 MouseMove %mousePosX%, %mousePosY% Return
Last edited by dg123; 07-20-2013 at 06:36 PM.
Never used ahk before, but couldn't you just create a loop for the img search and if img coords != null (or 0), the run the mouse click part.
dg123 (07-27-2013)