如果没有key需要到https://sct.ftqq.com/sendkey注册,免费用户每天只能发送5条
LC_UriEncode(Uri, RE="[0-9A-Za-z]") {
VarSetCapacity(Var, StrPut(Uri, "UTF-8"), 0), StrPut(Uri, &Var, "UTF-8")
While Code := NumGet(Var, A_Index - 1, "UChar")
Res .= (Chr:=Chr(Code)) ~= RE ? Chr : Format("%{:02X}", Code)
Return, Res
}
;https://sctapi.ftqq.com/****.send?title=messagetitle&desp=messagecontent
sendkey:="填入你自己的key"
title:="title=" LC_UriEncode("这是一个标题啦啦啦啦啦")
desp:="desp=" LC_UriEncode("这里是内容呦!")
url:="https://sctapi.ftqq.com/" sendkey ".send?" title "&" desp
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
whr.Open("POST", url, true)
whr.Send()
; Using 'true' above and the call below allows the script to remain responsive.
whr.WaitForResponse()
MsgBox % whr.ResponseText
; Clipboard:=% whr.ResponseText
; MsgBox % url
; Clipboard:= % url
?
是只能给自己的微信账号发信息吗
有对方server酱的key就可以发