![AHK调用com组件获取网络时间](https://cdn.autoahk.com/wp-content/uploads/2020/05/809495f59621beb9f_1_post.png)
URL = https://www.sina.com.cn/ ;这个网址可以根据所在国家网站访问的速度自行判定
request := ComObjCreate(“Microsoft.XMLHTTP”)
request.open(“GET”, URL, false)
request.send()
t := request.getResponseHeader(“Date”)
FormatTime, t
MsgBox %t%
URL = https://www.sina.com.cn/ ;这个网址可以根据所在国家网站访问的速度自行判定
request := ComObjCreate(“Microsoft.XMLHTTP”)
request.open(“GET”, URL, false)
request.send()
t := request.getResponseHeader(“Date”)
FormatTime, t
MsgBox %t%
之前