<?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="http://forum.script-coding.com/extern.php?action=feed&amp;tid=17212&amp;type=atom" />
	<updated>2022-07-02T18:41:29Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=17212</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование скриптом ник администратора из чата]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=153743#p153743" />
			<content type="html"><![CDATA[<p><strong>Вася</strong>, Не разбираюсь в регулярках, но сделал бы так:<br /></p><div class="codebox"><pre><code>
RegExMatch(Str , &quot;\[\d+\:\d+\:\d+] \[A\] (.*)\_(.*)\:&quot;, Match) 
SendMessage, 0x50,, 0x4190419,, A
Match := SubStr(Match1, 1 ,1) . &quot;.&quot; Match2
SendInput sp %match%{Enter}
Return

</code></pre></div>]]></content>
			<author>
				<name><![CDATA[andrey.a.polyakov.b2c]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=42228</uri>
			</author>
			<updated>2022-07-02T18:41:29Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=153743#p153743</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Копирование скриптом ник администратора из чата]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=153701#p153701" />
			<content type="html"><![CDATA[<p>Здравствуйте, можете доработать или переработать этот скрипт, чтобы он копировал никнейм администратора и вставлял мне его в чат при выдаче наказания.</p><p>Например <br />[nn:nn:nn] [A] Fedor_Rubanok: /jail 15 120 ДМ</p><p>И чтобы у меня в чате высвечивались только его инициалы.<br />Пример:<br />| F.Rubanok</p><div class="codebox"><pre><code>
F3:: 
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[Вася]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=42638</uri>
			</author>
			<updated>2022-06-27T19:46:22Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=153701#p153701</id>
		</entry>
</feed>
