Держи.
F2 - вводим id - enter, остальное само.
F2::
Sendinput {f6}/id{space}
Keywait, Enter, D
sleep 300
Loop, read, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
If A_LoopReadLine
IfInString, A_LoopReadLine, ] ID: (
{
StringSplit, IDTONAME, A_LoopReadLine, %A_Space%
THENAME := IDTONAME4
}
sleep 1100
SendInput {F6}/me дал %THENAME% визитку.{enter}
return