[Help] League Of Legends - Auto LastHit

Post gaming related scripts
User avatar
fkrause2
Posts: 9
Joined: 09 Sep 2019, 03:00

[Help] League Of Legends - Auto LastHit

16 Sep 2019, 02:37

I need to find a code for AHK to recognize when a "Loading Bar" or in this case an "HP Bar"
Be low (20%)
And if so, click on the assigned coordinates.

...
But the "ImageSearch" command only recognizes still images, and I can't find a way to see it when the "HP Bar" is below X%

This is my code:

Code: Select all

#SingleInstance force

MsgBox,, [WIP] Auto LastHit [WIP],
(
Comandos:
Shift + 1 =  ON
Shift + 2 =  OFF
Shift + 0 =  EXIT
)

+1:: ; ////////////

$stop := 0
loop {
if ($stop)
{
return
}
ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, HPBAR.png
If(ErrorLevel == 0){
foundX:=foundX+200 ; BLA BLA
foundY:=foundY+200 ; BLA BLA
Click, %foundX%, %foundY% ; BLA BLA
}
}



+2:: ; ///////////
$stop := 1
return


+3::  ; //////////
ExitApp
-> [WORK IN PROGRESS] <-
Attachments
example bar.gif
Example Minion HP Bar
example bar.gif (1.45 KiB) Viewed 661 times
HPBAR.png
On this point *OR less*... i need ahk. Start the script...
HPBAR.png (130 Bytes) Viewed 661 times
kyuuuri
Posts: 213
Joined: 09 Jan 2016, 19:20

Re: [Help] League Of Legends - Auto LastHit

01 Oct 2019, 22:15

Hello, try asking in the ask for help Gaming section. This section is only to share scripts and functions

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 17 guests