PgDn:: Loop, read, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
{ If A_LoopReadLine
MY_REPEAT_STRING := A_LoopReadLine
MY_CHATLOG := (A_Index-1)
} StringTrimLeft, MY_REPEAT_STRING, MY_REPEAT_STRING, 11 StringReplace, MY_REPEAT_STRING, MY_REPEAT_STRING, !, {!}, All StringReplace, MY_REPEAT_STRING, MY_REPEAT_STRING, +, {+}, All StringReplace, MY_REPEAT_STRING, MY_REPEAT_STRING, #, {#}, All StringReplace, MY_REPEAT_STRING, MY_REPEAT_STRING, ^, {^}, All Sendinput {f6}%MY_REPEAT_STRING%{home} return PgUp::
MY_CHATLOG -= 2 FileReadLine, MY_REPEAT_STRING, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt, %MY_CHATLOG% StringTrimLeft, MY_REPEAT_STRING, MY_REPEAT_STRING, 11 StringReplace, MY_REPEAT_STRING, MY_REPEAT_STRING, !, {!}, All StringReplace, MY_REPEAT_STRING, MY_REPEAT_STRING, +, {+}, All StringReplace, MY_REPEAT_STRING, MY_REPEAT_STRING, #, {#}, All StringReplace, MY_REPEAT_STRING, MY_REPEAT_STRING, ^, {^}, All Sendinput ^{vk41}{del}%MY_REPEAT_STRING%{home} return