<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Текст из файла в переменную для RegExMatch]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11505&amp;type=atom" />
	<updated>2016-04-18T12:07:44Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11505</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Текст из файла в переменную для RegExMatch]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102710#p102710" />
			<content type="html"><![CDATA[<p>И так, если я верно понял Вы хотели построчное чтение файла. В общем вот:</p><div class="codebox"><pre><code>File = D:\Radio.txt


Loop, Read, %File%
LineIndex = %A_Index%
start:
FileReadLine, Line, %File%, %LineIndex%
if (ErrorLevel == 1)
{
	LineIndex -= 1
	goto, start
}
if (Line == &quot;&quot;)
{
	LineIndex += 1
	goto, start
}
IfInString, Line, Совпадение
{
	MsgBox % &quot;Hello&quot;
}
;~ Sleep, 300 ; Для меньшей нагрузки
LineIndex += 1
goto, start
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[MoZg]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33153</uri>
			</author>
			<updated>2016-04-18T12:07:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102710#p102710</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Текст из файла в переменную для RegExMatch]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102652#p102652" />
			<content type="html"><![CDATA[<p>Есть файл D:\Radio.txt в нем любой текст.<br />Как его добавить в код<br /></p><div class="codebox"><pre><code>RegExMatch(file, &quot;(.*)&quot;, Match) ;
MsgBox, % Match1%</code></pre></div><p>При том что в файле добавляются строки и надо каждую из них проверять.</p>]]></content>
			<author>
				<name><![CDATA[Carbone]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33834</uri>
			</author>
			<updated>2016-04-17T03:56:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102652#p102652</id>
		</entry>
</feed>
