<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; [SAMP]]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=13344&amp;type=atom" />
	<updated>2018-01-20T04:59:30Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=13344</id>
		<entry>
			<title type="html"><![CDATA[Re: [SAMP]]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=123226#p123226" />
			<content type="html"><![CDATA[<p>Вот так. Скрипт будет постоянно удалять и првоерять чат лог, после нахождения фразы &quot;Вы тут&quot;, AHK напишет в чат - &quot;/b Да&quot;<br /></p><div class="codebox"><pre><code>
File = %A_MyDocuments%\Gta San Andreas User Files/SAMP/chatlog.txt ; 
FileDelete, %file% ; 
FileAppend, %file% ; 
F1:: ; F1
SoundBeep
1: ; Метка №1
FileRead, read, %file% ; 
if read contains Вы тут ; 
{
SoundSetWaveVolume, Percent [, DeviceNumber] 100
soundPlay %A_ScriptDir%\trevoga.mp3
        Sleep 100
SendMessage, 0x50,, 0x4090409,, A ; 
        Sleep 4000 ; Задержка
	SendInput, {F6}/b Да{Enter} ; 
	Sleep 300 ; Задержка
FileDelete, %file% ; 
FileAppend, %file% ; 
goto 1  ; 
Return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[234783g]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39015</uri>
			</author>
			<updated>2018-01-20T04:59:30Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=123226#p123226</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[[SAMP]]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122696#p122696" />
			<content type="html"><![CDATA[<p>Нужна помощь.<br />Нужно найти определённую строчку из документа chatlog.txd<br />если она есть то выполнить команду.<br />Путь к документу:<br />A_MyDocuments &quot;\GTA San Andreas User Files\SAMP\chatlog.txt&quot;<br />Например если видно в чате фраза Привет!<br />Скрипт пишет в ответ: &quot;Привет как дела!&quot;<br />Прошу помощи.</p>]]></content>
			<author>
				<name><![CDATA[Vadik]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38978</uri>
			</author>
			<updated>2017-12-31T13:43:13Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122696#p122696</id>
		</entry>
</feed>
