F4::
StringSendChatDelay("Пример для теста!")
Return
StringSendChatDelay(str, min_delay := 60, max_delay := 400)
{
StringReplace, text, text, ! , {!}, All
StringReplace, text, text, ? , {?}, All
SendMessage, 0x50,, 0x4190419,, A
SendKey("vk54") ; Нажать клавишу [T] - открыть чат
Sleep, 100
Loop, Parse, str
{
Random, rand, %min_delay%, %max_delay%
SendInput, % A_LoopField
Sleep, % rand
}
Sleep, 100
SendInput, {Enter}
}
SendKey(key)
{
ControlSend,, {%key% down}, ahk_exe ragemp_v.exe
Sleep, 50
ControlSend,, {%key% up}, ahk_exe ragemp_v.exe
}