Как-то так:
n := "0"
loop
{
loop
{
Sleep, 1200
HTTP := ComObjCreate("WinHTTP.WinHTTPRequest.5.1")
HTTP.Open("POST", "https://app.mobalytics.gg/api/lol/graphql/v1/query", true)
HTTP.SetRequestHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36")
HTTP.SetRequestHeader("Pragma", "no-cache")
HTTP.SetRequestHeader("Cache-Control", "no-cache, no-store")
HTTP.SetRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT")
HTTP.SetRequestHeader("Content-Type", "application/json")
HTTP.Send("{""operationName"":""LolChampionCountersStatsOptionsQuery"",""variables"":{""top"":10,""slug"":""jinx"",""role"":null,""queue"":null,""rank"":""All"",""region"":null,""vsChampionRole"":""ADC"",""sortField"":""WR"",""order"":""DESC"",""skip"":" n "},""extensions"":{""persistedQuery"":{""version"":1,""sha256Hash"":""f721539f9f6b532a55871ff1493bd4292058a4b964cf9b605ce6c7f894f5fab3""}}}")
try {
HTTP.WaitForResponse()
;if (HTTP.ResponseText != "")
break
}
catch {
sleep 5000
}
}
;msgbox % n
RTxt := HTTP.ResponseText
msgbox % RTxt
All .= RTxt "`n"
n+=10 ;шаг
if (30 <= n) ;30 всего
break
}
fileappend, % All, %A_ScriptDir%\All.html, UTF-8
return