<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Запись в переменную только последнею строку]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=14804</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14804&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Запись в переменную только последнею строку».]]></description>
		<lastBuildDate>Wed, 29 May 2019 15:29:11 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Запись в переменную только последнею строку]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=134480#p134480</link>
			<description><![CDATA[<p>Как записывать в документ tx1.txt только последнею найденную строчку.<br /></p><div class="codebox"><pre><code>
Loop, read, C:\lat.log, tx1.txt
{
    if InStr(A_LoopReadLine, &quot;Работа&quot;)
	Last_found := A_LoopReadLine
}

        FileAppend, %Last_found%
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Wed, 29 May 2019 15:29:11 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=134480#p134480</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Запись в переменную только последнею строку]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=134477#p134477</link>
			<description><![CDATA[<div class="codebox"><pre><code>log := {str:&quot;&quot;,find:0,num:0}    ,    log.str := []
		FileEncoding, CP0
		Loop, read, C:\lat.log
		log.str.Insert(A_LoopReadLine)    ,log.num := A_Index
		loop 30
			if RegExMatch(log.str[log.num + 1 - A_Index],&quot;Работа&quot;, end_str) and (log.find:=log.num + 1 - A_Index)
				break
		if (end_str != &quot;&quot;) {
			msgbox, % end_str
		} else {
			msgbox, Строка не найдена
		}</code></pre></div><p>Справедливости ради стоит отметить, что в плане потребления ресурсов этот вариант довольно прожорливый, может товарищи поопытнее что получше подскажут.</p>]]></description>
			<author><![CDATA[null@example.com (belyankin12)]]></author>
			<pubDate>Wed, 29 May 2019 06:19:04 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=134477#p134477</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Запись в переменную только последнею строку]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=134476#p134476</link>
			<description><![CDATA[<p>Здравствуйте!<br />Столкнулся с проблемой.<br />Имеется данный код:<br /></p><div class="codebox"><pre><code>
Loop, read, C:\lat.log, tx1.txt
{
    if InStr(A_LoopReadLine, &quot;Работа&quot;)
        FileAppend, %A_LoopReadLine%`n
}
</code></pre></div><p>Проблема заключается в том, что он находит много строк, где присутствует слово Работа.</p><p>Вопрос:</p><p>Как записывать в документ tx1.txt только последнею найденную строчку?</p>]]></description>
			<author><![CDATA[null@example.com (Clannad5)]]></author>
			<pubDate>Wed, 29 May 2019 04:32:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=134476#p134476</guid>
		</item>
	</channel>
</rss>
