<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; SAMP. Обнаружение строки в чате]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=11747</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=11747&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «SAMP. Обнаружение строки в чате».]]></description>
		<lastBuildDate>Fri, 08 Jul 2016 09:16:31 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: SAMP. Обнаружение строки в чате]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=105979#p105979</link>
			<description><![CDATA[<p>Попробуй на примере этого сделать свое:<br /></p><div class="codebox"><pre><code>FileCLog:=% A_MyDocuments &quot;\GTA San Andreas User Files\SAMP\chatlog.txt&quot;

loop
{

lastline := GetNewLine(FileCLog)

If lastline contains привет,здрав,здаров, Привет
{
RegExMatch(lastline, &quot;i).*\[([0-9]*)\]: \{FFCD00\}.*&quot;, idPl)
Sendinput {F6}/sms %idPl1% Здравствуйте{ENTER}
}

}

GetNewLine(filename)
{ ;функция чтения последней строки, если файл изменен каждыее 100 мс
static old
static new
if !old
{
FileGetSize, old, %filename%
new := old
}
while old = new
{
sleep 100
FileGetSize, new, %filename%
}
old := new
Loop, read, %filename%
if A_LoopReadLine
{
last := A_LoopReadLine ;последняя строка
}
return last
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Bamboocho)]]></author>
			<pubDate>Fri, 08 Jul 2016 09:16:31 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=105979#p105979</guid>
		</item>
		<item>
			<title><![CDATA[Re: SAMP. Обнаружение строки в чате]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=105616#p105616</link>
			<description><![CDATA[<p><span style="color: green"><strong>44</strong>, ознакомьтесь с <a href="http://forum.script-coding.com/viewtopic.php?id=9590">этой</a> темой, отредактируйте свои посты.</span> Пока ответы в теме запрещены.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 27 Jun 2016 18:13:47 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=105616#p105616</guid>
		</item>
		<item>
			<title><![CDATA[Re: SAMP. Обнаружение строки в чате]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=105612#p105612</link>
			<description><![CDATA[<div class="quotebox"><cite>SeaVodikendu пишет:</cite><blockquote><p>К примеру:<br /></p><div class="codebox"><pre><code>
Search:
A=0
Loop, read, %path%chatlog.txt
{
last_line := A_LoopReadLine
}

if last_line = &quot;12345&quot;

{
A=1
Sendinput, {F6}54321{enter}
Goto, Search
}

If !a

{
Goto, Search
}
}
Return
</code></pre></div></blockquote></div><p>не работает как надо</p>]]></description>
			<author><![CDATA[null@example.com (44)]]></author>
			<pubDate>Mon, 27 Jun 2016 16:34:40 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=105612#p105612</guid>
		</item>
		<item>
			<title><![CDATA[Re: SAMP. Обнаружение строки в чате]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=105430#p105430</link>
			<description><![CDATA[<p>К примеру:<br /></p><div class="codebox"><pre><code>
Search:
A=0
Loop, read, %path%chatlog.txt
{
last_line := A_LoopReadLine
}

if last_line = &quot;12345&quot;

{
A=1
Sendinput, {F6}54321{enter}
Goto, Search
}

If !a

{
Goto, Search
}
}
Return
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (SeaVodikendu)]]></author>
			<pubDate>Tue, 21 Jun 2016 17:29:03 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=105430#p105430</guid>
		</item>
		<item>
			<title><![CDATA[SAMP. Обнаружение строки в чате]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=105429#p105429</link>
			<description><![CDATA[<p>Необходимо чтобы при КАЖДОМ обнаружении в chatlog строки &quot;12345&quot; моментально выполнялось действие (например Sendinput {F6}54321{enter})</p>]]></description>
			<author><![CDATA[null@example.com (44)]]></author>
			<pubDate>Tue, 21 Jun 2016 17:03:50 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=105429#p105429</guid>
		</item>
	</channel>
</rss>
