<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; Выполнения действия при определенной команды]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=12079</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=12079&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Выполнения действия при определенной команды».]]></description>
		<lastBuildDate>Wed, 09 Nov 2016 17:33:02 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Выполнения действия при определенной команды]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=109032#p109032</link>
			<description><![CDATA[<div class="codebox"><pre><code>Filename=%A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
FileDelete, %Filename%
FileAppend, %Filename%
Loop, read, %Filename%
nstroki=%A_Index%
start:
FileReadLine, stroka, %Filename%, %nstroki%
if ErrorLevel
{
nstroki-=1
goto start
}
if stroka=
{
nstroki+=1
goto start
}
IfInString, stroka, &gt;&gt; СМС от
{
if (InStr(stroka, &quot;Вы тут?&quot;)) or (InStr(stroka, &quot;Ты тут?&quot;))
{
твоё действие

sleep, 100
nstroki+=1
goto start
}
}
nstroki+=1
goto start
return</code></pre></div><p>Слова там сам поменяешь)</p>]]></description>
			<author><![CDATA[null@example.com (mr.ramser)]]></author>
			<pubDate>Wed, 09 Nov 2016 17:33:02 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=109032#p109032</guid>
		</item>
		<item>
			<title><![CDATA[Выполнения действия при определенной команды]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=108375#p108375</link>
			<description><![CDATA[<p>Мне нужно чтобы как только в chatlog.txt высвечивалось слово определенное, ahk выполнял действия. <br />Вот что=то набросал, но не работает. Просьба помочь в моем коде, или написать новый.</p><div class="codebox"><pre><code>settimer,Kenzo,1
Script := &quot;Вы тут?&quot;

Kenzo:
fileread, sms, %a_mydocuments%\gta san andreas user files\samp\chatlog.txt
if sms contains %Script%
     {
     SendMessage, 0x50,, 0x4190419,, A
     Send, {Up Down}
     sleep, 1700
     Send, {Up Up}
     sleep, 10
     filedelete,%a_mydocuments%\gta san andreas user files\samp\chatlog.txt
     return
}
return</code></pre></div><p>Действие должно выполняться максимально быстро.</p>]]></description>
			<author><![CDATA[null@example.com (KenzoHK)]]></author>
			<pubDate>Tue, 18 Oct 2016 20:01:19 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=108375#p108375</guid>
		</item>
	</channel>
</rss>
