<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Копирование чат-лога]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=17874&amp;type=atom" />
	<updated>2023-07-18T09:25:04Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17874</id>
		<entry>
			<title type="html"><![CDATA[AHK: Копирование чат-лога]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158791#p158791" />
			<content type="html"><![CDATA[<p>Здравствуйте, нужно переработать код, чтобы копировало результат с этих квадратных скобочек. Сам этого сделать не могу. (Немного не хватает ума)<br />(RegExMatch(&quot;`n&quot; Str &quot;`n&quot;, &quot;i).*\n\[\d+:\d+:\d+]\s*\ .*?\[В этих скобках] : \s*(/`*.*?(\d+)\s.*?)\n&quot;, Match))</p><div class="codebox"><pre><code>
#IfWinActive, ahk_exe gta_sa.exe
#SingleInstance Force 
#NoEnv

ListLines Off 
SetBatchLines -1

chatlog := A_MyDocuments &quot;\RADMIR CRMP User Files\SAMP\chatlog.txt&quot;
;FileDelete, %chatlog%


NumPad4:: 
FileRead, Str, %chatlog%
StringReplace, Str, Str, `r`n, `n, 1
StringReplace, Str, Str, `r, `n, 1

RegExMatch(&quot;`n&quot; Str &quot;`n&quot;, &quot;i).*\n\[\d+:\d+:\d+]\s*\ .*?\[.*?] : \s*(/`*.*?(\d+)\s.*?)\n&quot;, Match) 
SendMessage, 0x50,, 0x4190419,, A
SendInput,{F6}/sp %match2%{Enter}
Return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[klimentijtrohin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42633</uri>
			</author>
			<updated>2023-07-18T09:25:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158791#p158791</id>
		</entry>
</feed>
