I don't mean to save my chatlogs after I quit/crash.uwe1337 link said:You mean to copy the chatlog of your session?
Yes u can it copy with aurohotkey
Use FileCopy...
Copy anything that is written in chat, just like normal copying. You think that's possible?Yekwol link said:[quote author=uwe1337 link=topic=5941.msg33711#msg33711 date=1394530257]
Press t and with the mouse u will copy what? Textdraws??
GetChatLine(Line, ByRef Output, timestamp=0, color=0)
{
chatindex := 0
FileRead, file, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
loop, Parse, file, `n, `r
{
if(A_LoopField)
chatindex := A_Index
}
loop, Parse, file, `n, `r
{
if(A_Index = chatindex - line){
output := A_LoopField
break
}
}
file := ""
if(!timestamp)
output := RegExReplace(output, "U)^\[\d{2}:\d{2}:\d{2}\]")
if(!color)
output := RegExReplace(output, "Ui)\{[a-f0-9]{6}\}")
return
}
1::
GetChatLine(0, chat)
msgbox, %chat% (only for test xD)
OR
SendInput t %chat% {enter}
return
GetChatLine(Line, ByRef Output, timestamp=0, color=0)
{
chatindex := 0
FileRead, file, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
loop, Parse, file, `n, `r
{
if(A_LoopField)
chatindex := A_Index
}
loop, Parse, file, `n, `r
{
if(A_Index = chatindex - line){
output := A_LoopField
break
}
}
file := ""
if(!timestamp)
output := RegExReplace(output, "U)^\[\d{2}:\d{2}:\d{2}\]")
if(!color)
output := RegExReplace(output, "Ui)\{[a-f0-9]{6}\}")
return
}
;The 1 Key is only to Post the Last Line
1::
GetChatLine(0, chat)
SendInput t %chat% {enter}
return
;The 2 Key is for Changing the last Chatline
2::
GetChatLine(0, chat)
SendInput t %chat%
return