Copy?

Joseph

Active member
Joined
Feb 25, 2014
Messages
47
Reaction score
0
I know it's pretty useless, but I'd like to see if it's poss :D
Is it possible to copy directly from ingame chatbox? Would be awesome :D
(any program to do it? :D) :somuchwin:
 

Joseph

Active member
Joined
Feb 25, 2014
Messages
47
Reaction score
0
uwe1337 link said:
You mean to copy the chatlog of your session?
Yes u can it copy with aurohotkey
Use FileCopy...
I don't mean to save my chatlogs after I quit/crash.
I meant the ability to press T/F6 and move your cursor on any text/sentence and just simply copy it.
 

TheZeRots

Expert
Joined
Dec 21, 2013
Messages
1,247
Reaction score
1
Yekwol link said:
[quote author=uwe1337 link=topic=5941.msg33711#msg33711 date=1394530257]
Press t and with the mouse u will copy what? Textdraws??
Copy anything that is written in chat, just like normal copying. You think that's possible? :)
[/quote]

With some C++, yes.
 

uwe1337

Active member
Joined
Feb 4, 2014
Messages
36
Reaction score
0
sry for wating xD

u Need Autohotkey for this

on desktop right click - new Autohotkey.ahk file and edit it
now

the Function on the TOP:
Code:
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
}

now you can take the function:
Code:
1::
GetChatLine(0, chat)

msgbox, %chat%  (only for test xD)

OR

SendInput t %chat% {enter}

return

if you dont mean it say me

regards
:urtheman:
 

Joseph

Active member
Joined
Feb 25, 2014
Messages
47
Reaction score
0
Okay, you got me confused there. should I copy both codes and put them into an autohotkey

plus, even if I got it working.. how to use? :computer_guy:
 

uwe1337

Active member
Joined
Feb 4, 2014
Messages
36
Reaction score
0
Function ON THE TOP:
Code:
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
}

Now the Keys to use the FUNCTION:
Code:
;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
 
Top