<?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=17089&amp;type=atom" />
	<updated>2022-05-01T18:49:21Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=17089</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Автоответчик]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=153008#p153008" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong><br />Отредактировал. Слово &quot;Words&quot; - лишь содержит в себе слова для реакции, но мне вовсе не это надо. Дело в том, что неизвестно что напишет игрок, он может написать и help, и сос и тд, то есть невозможно предугадать</p>]]></content>
			<author>
				<name><![CDATA[qwercv]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=42289</uri>
			</author>
			<updated>2022-05-01T18:49:21Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=153008#p153008</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Автоответчик]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=153007#p153007" />
			<content type="html"><![CDATA[<p>Откуда взялась &#039;lastline&#039;?</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2022-05-01T18:31:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=153007#p153007</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Автоответчик]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=153006#p153006" />
			<content type="html"><![CDATA[<p>Допустим игрок в репорт пишет:<br />Ivan_Ivanov[25] : помогите</p><p>Как мне автоматически отвечать игроку:<br />/otvet 25 Помогу</p><p>Другими словами мне надо чтобы код открывал чат на F6 и вводил: &quot;/otvet&quot; потом id игрока(в данном случае 25) и слово &quot;помогу&quot;</p><p>Немного накидал тут:</p><div class="codebox"><pre><code>
!z:: 
FileRead, Str, %A_MyDocuments%\GTA CRMP User Files\SAMP\chatlog.txt 
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*\[A].*?\[.*?]:\s*(/`*&quot; Words &quot;\s.*?)\n&quot;, find)
ToolTip % Clipboard := find1
FileAppend,%find1%`n,chat.ini
Sleep 0
SendMessage, 0x50,, 0x4190419,, A
SendInput,{F6}/otvet %find1%{Enter}
clipboard =
ToolTip
FileDelete,%A_MyDocuments%\GTA CRMP User Files\SAMP\chatlog.txt 
Return
</code></pre></div><p>Но данный код не копирует id игрока, а просто выводит в чат /otvet без id</p>]]></content>
			<author>
				<name><![CDATA[qwercv]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=42289</uri>
			</author>
			<updated>2022-05-01T18:15:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=153006#p153006</id>
		</entry>
</feed>
