Pizduk2277
Активный
- 289
- 32
UPDATE
Обновленная функция vk_send()
AutoHotKey:vk_send(text) { text := RegExReplace(text, "%", "%25") ; first string text := RegExReplace(text, "\+", "%2B") text := RegExReplace(text, "#", "%23") text := RegExReplace(text, "&", "%26") text := RegExReplace(text, "`n", "%0A") HTTP := ComObjCreate("WinHTTP.WinHTTPRequest.5.1") HTTP.Open("GET", proxy "api.vk.com/method/messages.send?user_id=" vk_id "&message=" text "&v=5.131&random_id=0&access_token=" vk_token) try HTTP.Send() return }
выше
AutoHotKey:
global vkid :="264630844"
global vktoken:=""
global proxy := "https://vk-api-proxy.xtrafrancyz.net/_/"
vk_send(text) {
text := RegExReplace(text, "%", "%25") ; first string
text := RegExReplace(text, "\+", "%2B")
text := RegExReplace(text, "#", "%23")
text := RegExReplace(text, "&", "%26")
text := RegExReplace(text, "`n", "%0A")
vkid :="264630844"
token:=""
HTTP := ComObjCreate("WinHTTP.WinHTTPRequest.5.1")
HTTP.Open("GET", proxy "api.vk.com/method/messages.send?user_id=" vk_id "&message=" text "&v=5.131&random_id=0&access_token=" vk_token)
try
HTTP.Send()
return
}
f2::
vk_send(13123)
return