Code: Select all
r::
BingHtml := URLDownloadToVar("https://bing.com")
RegexMatch(BingHtml, "s)""Description"":""(.+?)""", match)
MsgBox, % clipboard := match1
ExitApp
URLDownloadToVar(url){
hObject:=ComObjCreate("WinHttp.WinHttpRequest.5.1")
hObject.Open("GET",url)
hObject.Send()
return hObject.ResponseText
}