help with a little script
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...
Code:
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
If anyone can get this working i will release a full autoloot script 
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.