But my code doesn't work. Help please!
Code: Select all
#Requires AutoHotkey v1
URL=https://q.stock.sohu.com/cn/002403/cwzb.shtml
info:=URLDownloadToVar(URL)
Needle = U)<table class="reportA">(.*)<div class="foot"></div>
RegExMatch(info,Needle,Data)
Info := Data1
msgbox % Info
Return
URLDownloadToVar(url,ByRef variable=""){
hObject:=ComObjCreate("WinHttp.WinHttpRequest.5.1")
hObject.Open("GET",url)
hObject.Send()
return variable:=hObject.ResponseText
}