help with a little script

Posts 1–2 of 2 · Page 1 of 1
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.
Posts 1–2 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us