<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Проверка чатлога таймером на подстроки и реакция на них]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=10911&amp;type=atom" />
	<updated>2015-08-31T09:08:21Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=10911</id>
		<entry>
			<title type="html"><![CDATA[Re: Проверка чатлога таймером на подстроки и реакция на них]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=96966#p96966" />
			<content type="html"><![CDATA[<p>Закрыто. Нашел решение.<br />Если вы столкнулись с подобной проблемой - пишите в скайп: demenev.dmitriy2</p>]]></content>
			<author>
				<name><![CDATA[John_Science]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33318</uri>
			</author>
			<updated>2015-08-31T09:08:21Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=96966#p96966</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проверка чатлога таймером на подстроки и реакция на них]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=96951#p96951" />
			<content type="html"><![CDATA[<p>Parameter #2 invalid<br />SetTimer, ChatlogChecking , z</p>]]></content>
			<author>
				<name><![CDATA[John_Science]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33318</uri>
			</author>
			<updated>2015-08-30T14:06:36Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=96951#p96951</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проверка чатлога таймером на подстроки и реакция на них]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=96949#p96949" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>ChatlogChecking:
Loop, read, %path_chatlog%
{
  ifInString, A_LoopReadLine, %pattern_stun%
  {
    msgbox,работает
  }
  msgbox,% &quot;Я же говорил проверяй содержимое переменных`, если что то не работает.`nA_LoopReadLine=&quot; A_LoopReadLine &quot;`npattern_stun=&quot; pattern_stun
}

</code></pre></div><p>В таком виде работает?</p><p>Еще, как вариант, убрать чувствительность к регистру.<br /></p><div class="codebox"><pre><code>StringCaseSense,Off
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2015-08-30T11:14:39Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=96949#p96949</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проверка чатлога таймером на подстроки и реакция на них]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=96947#p96947" />
			<content type="html"><![CDATA[<p>Все еще не работает. Код обновил.</p>]]></content>
			<author>
				<name><![CDATA[John_Science]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33318</uri>
			</author>
			<updated>2015-08-30T06:57:25Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=96947#p96947</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проверка чатлога таймером на подстроки и реакция на них]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=96945#p96945" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>John_Science пишет:</cite><blockquote><div class="codebox"><pre><code>ifInString, %A_LoopReadLine%, %pattern_stun%</code></pre></div></blockquote></div><p>В первом параметре знаки процента не нужны, это просто имя переменной.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-08-29T21:36:29Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=96945#p96945</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проверка чатлога таймером на подстроки и реакция на них]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=96943#p96943" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>А новый, это какой?</p></blockquote></div><p>В самом первом посте.</p>]]></content>
			<author>
				<name><![CDATA[John_Science]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33318</uri>
			</author>
			<updated>2015-08-29T21:32:05Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=96943#p96943</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проверка чатлога таймером на подстроки и реакция на них]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=96942#p96942" />
			<content type="html"><![CDATA[<p>А новый, это какой?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-08-29T21:30:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=96942#p96942</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проверка чатлога таймером на подстроки и реакция на них]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=96941#p96941" />
			<content type="html"><![CDATA[<p>Большое спасибо за информацию, но эти ошибки были в старом коде. Прошу вас помочь найти ошибки в новом.<br />Переменная tmp_string к новому коду не относится.</p>]]></content>
			<author>
				<name><![CDATA[John_Science]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33318</uri>
			</author>
			<updated>2015-08-29T21:26:29Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=96941#p96941</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проверка чатлога таймером на подстроки и реакция на них]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=96936#p96936" />
			<content type="html"><![CDATA[<p>Что это за конструкция:<br /></p><div class="codebox"><pre><code>Loop, read, %path_chatlog%
{
FileReadLine, tmp_string, %path_chatlog%, %A_LoopReadLine%
...
}</code></pre></div><p>?<br />В переменной <a href="http://ahkscript.org/docs/commands/LoopReadFile.htm#Remarks"><em>A_LoopReadLine</em></a> и так уже содержится очередная строка, её не нужно читать заново. Кроме того, формат команды <a href="http://ahkscript.org/docs/commands/FileReadLine.htm"><strong><em>FileReadLine</em></strong></a> неверный:<br /></p><div class="quotebox"><blockquote><p>FileReadLine, OutputVar, Filename, LineNum</p></blockquote></div><p>Там в четвёротм параметре должен быть номер строки, а у вас её текст, поэтому переменная <em>tmp_string</em> будет пустой.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-08-29T19:30:12Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=96936#p96936</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проверка чатлога таймером на подстроки и реакция на них]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=96934#p96934" />
			<content type="html"><![CDATA[<p>Не помогло.</p>]]></content>
			<author>
				<name><![CDATA[John_Science]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33318</uri>
			</author>
			<updated>2015-08-29T18:15:34Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=96934#p96934</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проверка чатлога таймером на подстроки и реакция на них]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=96931#p96931" />
			<content type="html"><![CDATA[<p>В <a href="http://www.script-coding.com/AutoHotkey/FileReadLine.html">FileReadLine</a> таже беда.<br /></p><div class="codebox"><pre><code>FileReadLine, tmp_string, %path_chatlog%, %A_Index%
</code></pre></div><p>А вообще, возьми в привычку проверять содержимое переменных либо в &quot;Variables and their contents	Ctrl+V&quot;, либо с помощью &quot;tooltip&quot; или &quot;msgbox&quot;.</p><div class="codebox"><pre><code>FileReadLine, tmp_string, %path_chatlog%, %A_Index%
tooltip,% path_chatlog &quot;`n&quot; tmp_string
</code></pre></div><p>И в <a href="http://www.script-coding.com/AutoHotkey/FileDelete.html">FileDelete</a> тоже.<br /></p><div class="codebox"><pre><code>FileDelete, %path_chatlog%</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2015-08-29T16:28:08Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=96931#p96931</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проверка чатлога таймером на подстроки и реакция на них]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=96930#p96930" />
			<content type="html"><![CDATA[<p>Спасибо, только это не помогло.</p>]]></content>
			<author>
				<name><![CDATA[John_Science]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33318</uri>
			</author>
			<updated>2015-08-29T15:49:12Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=96930#p96930</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проверка чатлога таймером на подстроки и реакция на них]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=96928#p96928" />
			<content type="html"><![CDATA[<p>Нет, это переменная в твоем случае, также как и &quot;pattern_stun&quot;.</p><div class="codebox"><pre><code>ifInString, tmp_string, %pattern_stun%
</code></pre></div><p>ifInString - функция;<br />tmp_string - первый параметр;<br />%pattern_stun% - второй параметр.</p><p><span style="color: #aaaaaa"><br />ЗЫ Скоро придет модератор и наругает тебя за цитирование.</span></p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2015-08-29T15:10:42Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=96928#p96928</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проверка чатлога таймером на подстроки и реакция на них]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=96925#p96925" />
			<content type="html"><![CDATA[<p>Что? tmp_string это строка.</p>]]></content>
			<author>
				<name><![CDATA[John_Science]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33318</uri>
			</author>
			<updated>2015-08-29T15:03:34Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=96925#p96925</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проверка чатлога таймером на подстроки и реакция на них]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=96923#p96923" />
			<content type="html"><![CDATA[<p><a href="http://www.script-coding.com/AutoHotkey/IfInString.html">Из справки:</a><br /></p><div class="codebox"><pre><code>IfInString, Haystack, %Needle%
</code></pre></div><p>Второй параметр принимает строку, а не выражение.</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2015-08-29T14:52:23Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=96923#p96923</id>
		</entry>
</feed>
