Re: League Tools V5.3 - 11-11-16
Posted: 11 Nov 2016, 12:31
Changelog - V5.3
Added check for update
Streamlined pro streamer api calls
Added check for update
Streamlined pro streamer api calls
Let's help each other out
https://www.autohotkey.com/boards/
https://www.autohotkey.com/boards/viewtopic.php?f=19&t=10818
Code: Select all
;get the current release folder
DestPattern = C:\Riot Games\League of Legends\RADS\projects\lol_air_client\releases
SplitPath, DestPattern, , OutDir, , ,
var := InStr(FileExist(OutDir), "D")
if var = 1
{
Loop, C:\Riot Games\League of Legends\RADS\projects\lol_air_client\releases\*, 1
{
release= %A_LoopFileName%
}
}
;Function to get the id of the profile icon
GetInvocateurProfilID(sNomInvocateur,apiKey)
{
global summonerstat
StringLower, searchsummoner, sNomInvocateur
InvocateurURL = https://euw.api.pvp.net/api/lol/euw/v1.4/summoner/by-name/%searchsummoner%?api_key=%apiKey%
ComObjError(0)
WebRequest := ComObjCreate("WinHttp.WinHttpRequest.5.1")
WebRequest.Open("GET", InvocateurURL)
WebRequest.Send()
str := WebRequest.ResponseText(), ComObjError(0)
sSearchInvocateurID = %searchsummoner%.profileIconId
sInvocateurProfilID = % json(str,sSearchInvocateurID)
return sInvocateurProfilID
}
;Loadings Accounts
Menu, Accounts, Add, %l%, Tools
IDSummonerProfil := GetInvocateurProfilID(l,Key)
Menu, Accounts, Icon, %l%, C:\Riot Games\League of Legends\RADS\projects\lol_air_client\releases\%release%\deploy\assets\storeImages\content\summoner_icon\profileIcon%IDSummonerProfil%.jpg,,35
Code: Select all
GetRotations()
{
n=0
suivant:
monurl = http://euw.leagueoflegends.com/en/news
if n > 0
{
monurl = %monurl%?page=%n%
}
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
whr.Open("GET",monurl, true)
whr.Send()
whr.WaitForResponse()
page1 := whr.ResponseText
if page1 not contains /en/news/game-updates/gameplay/rotating-game-mode-queue-now-live
{
n += 1
Goto, suivant
}
Loop , parse , page1 , `n
{
line := A_LoopField
if line contains /en/news/game-updates/gameplay/rotating-game-mode-queue-now-live
{
Needle = href="
StringGetPos, pos, line, %Needle%
StringTrimLeft, line, line, %pos%
StringTrimLeft, line, line, 6
Needle = "
StringGetPos, pos, line, %Needle%
if pos >= 0
OutputVar := StrLen(line)
finam := OutputVar - pos
StringTrimRight , urlrota, line, %finam%
break
}
}
monurlrota = http://euw.leagueoflegends.com/%urlrota%
rotanb := SubStr(urlrota,-4)
Needle = -
StringGetPos, pos, rotanb, %Needle%
StringTrimLeft, rotanb, rotanb, %pos%
StringTrimLeft, rotanb, rotanb, 1
If !(FileExist(A_ScriptDir "\" ScriptName "\News\rotations" rotanb ".png"))
{
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
whr.Open("GET",monurlrota, true)
whr.Send()
whr.WaitForResponse()
page1 := whr.ResponseText
Loop , parse , page1 , `n
{
line := A_LoopField
if line contains Weekly
{
Needle = href="
StringGetPos, pos, line, %Needle%
StringTrimLeft, line, line, %pos%
StringTrimLeft, line, line, 6
Needle = "
StringGetPos, pos, line, %Needle%
if pos >= 0
OutputVar := StrLen(line)
finam := OutputVar - pos
StringTrimRight , imgurl, line, %finam%
imgurl = %imgurl%
RotationURL = https://api.imageresizer.io/images?url=%imgurl%
global RotationCount
ComObjError(0)
WebRequest := ComObjCreate("WinHttp.WinHttpRequest.5.1")
WebRequest.Open("GET", RotationURL)
WebRequest.Send()
str := WebRequest.ResponseText(), ComObjError(0)
StringReplace, str, str, `",,All ;"
StringReplace, str, str, `,, %A_Space%,All
StringReplace, str, str, id, id, UseErrorLevel
RotationCount := ErrorLevel
Pos = 1
Loop, %RotationCount%
{
Pos := (RegExMatch(str, "id:(.*?)\swidth:", Champs, Pos)) + 2
idimg = %Champs1%
break
}
imgurl = https://im.ages.io/%idimg%?height=400
UrlDownloadToFile, %imgurl%, rotations%rotanb%.png
break
}
}
}
return rotanb
}
nbrota := GetRotations()
SplashImage, rotations%nbrota%.png, M2 H450 W750, Rotating game, , Rotating game
Sleep 3000
SplashTextOff
Yes it is possible, but you probably are not going to find anyone to do it for you. This is a much larger task than it appears on the surface and you are asking for many hours of research, coding and testing. If you would like to learn such a thing I can point you in the right direction via the AHK documentation but you are unlikely to find someone to just create it for you. Welcome to AHK.VinoGamer wrote:Can anyone make a script to use the skills on the nearest enemy champion? Is that possible in Ahk?
Yes, I would like to learn. <3Ruevil2 wrote:Yes it is possible, but you probably are not going to find anyone to do it for you. This is a much larger task than it appears on the surface and you are asking for many hours of research, coding and testing. If you would like to learn such a thing I can point you in the right direction via the AHK documentation but you are unlikely to find someone to just create it for you. Welcome to AHK.VinoGamer wrote:Can anyone make a script to use the skills on the nearest enemy champion? Is that possible in Ahk?
Gtblaze45 wrote:hi, really nice work but is there a way to use parts of these scripts? im using a low end computer. i'd like the auto queue/auto accept and login function only. how do i edit this code?
Yeah those scripts are more for people who would like to code their own GUI using my core functions. Download the new script(5.5 at this point), run it and let it load once. Close the script and open the _config.ini file and set the Toaster variable to 1. This will disable the outbound API calls and will make the script much faster. Also disables champion guides, champ sales, skin sales and pro streams. Should be auto start and auto login only. Give it a try and let me know.Gtblaze45 wrote:all i did was copy your last file. what about the other above 2?
i tried running it, it didnt work, the script didnt open.
Should point out that this most definitely a bannable use of scripting and will 100% get your account banned if detected.VinoGamer wrote:Can anyone make a script to use the skills on the nearest enemy champion? Is that possible in Ahk?
Hey man, long time.Ruevil2 wrote:Changelog v5.5
Added toaster mode
UpdateCheck call converted to asynchronous to prevent menu hanging issue
randomguy9472 wrote:Hey man, long time.Ruevil2 wrote:Changelog v5.5
Added toaster mode
UpdateCheck call converted to asynchronous to prevent menu hanging issue
Any luck adapting this to the beta client?