[Help] League Of Legends - Auto LastHit

Ask gaming related questions (AHK v1.1 and older)
User avatar
fkrause2
Posts: 9
Joined: 09 Sep 2019, 03:00

[Help] League Of Legends - Auto LastHit

16 Sep 2019, 02:37

[Mod edit: Topic moved from 'Scripts and Functions > Gaming'.]

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 6163 times
HPBAR.png
On this point *OR less*... i need ahk. Start the script...
HPBAR.png (130 Bytes) Viewed 6163 times
kyuuuri
Posts: 340
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
realRootkit
Posts: 1
Joined: 22 Nov 2021, 21:42

Re: [Help] League Of Legends - Auto LastHit

22 Nov 2021, 21:48

hi have u got this figured out yet? if yes please share this with me i can contact u on discord

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Exies and 34 guests