<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK:Чтение txt и открытие файла из строки.]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=7842</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=7842&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK:Чтение txt и открытие файла из строки.».]]></description>
		<lastBuildDate>Wed, 13 Feb 2013 13:39:53 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK:Чтение txt и открытие файла из строки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=69433#p69433</link>
			<description><![CDATA[<p>И если за секунду\цикл появилось несколько совпадений, нужно обработать каждое, или первое появившееся (как в примере выше), а остальные игнорировать?</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Wed, 13 Feb 2013 13:39:53 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=69433#p69433</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Чтение txt и открытие файла из строки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=69428#p69428</link>
			<description><![CDATA[<div class="quotebox"><cite>Uniors пишет:</cite><blockquote><p>Столкнулся с похожей проблемой, необходимо каждую секунду проверять текстовый документ на наличие цифр (1,3,7,9) , если не найдено то запомнить текущую строку для последующего поиска со следующей строки (искать только в новом тексте) если найдено, то gosub, xxx(1,3,7,9) ......................</p></blockquote></div><div class="codebox"><pre><code>
SelectedFile = %A_ScriptDir%\Лог.txt
loop 
{
    Sleep 1000
    IfNotExist, %SelectedFile%
    {
        MsgBox, Лог файл не найден.
        Continue
    }
    FileRead, File, %SelectedFile%
    Pos := RegExMatch(File, &quot;1|3|7|9&quot;, match, Len) , Len := StrLen(File)+1
    if !Pos
        Continue
    gosub, xxx_%match%
}

xxx_1:
    MsgBox xxx_1
    return
xxx_3:
    MsgBox xxx_3
    return
xxx_7:
    MsgBox xxx_7
    return
xxx_9:
    MsgBox xxx_9
    return
</code></pre></div><div class="quotebox"><cite>Uniors пишет:</cite><blockquote><p>...................... После активации метки &quot;ххх1&quot; в лог будет записано &quot;1&quot;, при следующей проверке скрипт должен пропустить эту строку</p></blockquote></div><p>Не понятно в какой лог и как записывать?</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Wed, 13 Feb 2013 12:59:22 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=69428#p69428</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Чтение txt и открытие файла из строки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=66694#p66694</link>
			<description><![CDATA[<p>Столкнулся с похожей проблемой, необходимо каждую секунду проверять текстовый документ на наличие цифр (1,3,7,9) , если не найдено то запомнить текущую строку для последующего поиска со следующей строки (искать только в новом тексте) если найдено, то gosub, xxx(1,3,7,9)<br /></p><div class="codebox"><pre><code>FileSelectFile, SelectedFile, 3, log,Открыть файл, Текстовые файлы (*.txt)
if SelectedFile =
    MsgBox, Лог файл не найден.
else
Loop, Read, %SelectedFile%
{
    IfInString, A_LoopReadLine, 1
    {
gosub, xxx1
        Break
    }
}
return

xxx1:
SendInput, 1
return</code></pre></div><p>После активации метки &quot;ххх1&quot; в лог будет записано &quot;1&quot;, при следующей проверке скрипт должен пропустить эту строку</p>]]></description>
			<author><![CDATA[null@example.com (Uniors)]]></author>
			<pubDate>Thu, 06 Dec 2012 03:22:44 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=66694#p66694</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Чтение txt и открытие файла из строки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=66615#p66615</link>
			<description><![CDATA[<p>Читать и правда оч. сложно такое.<br />Поправил посты.<br />Прошу прощения.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Tue, 04 Dec 2012 21:51:18 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=66615#p66615</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Чтение txt и открытие файла из строки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=66589#p66589</link>
			<description><![CDATA[<div class="quotebox"><cite>creature.ws пишет:</cite><blockquote><p>Граждане, а зачем вы полностью цитируете предыдущее сообщение? <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p></blockquote></div><p><span style="color: green">Всецело поддерживаю замечание.</span></p>]]></description>
			<author><![CDATA[null@example.com (alexii)]]></author>
			<pubDate>Tue, 04 Dec 2012 11:06:49 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=66589#p66589</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Чтение txt и открытие файла из строки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=66588#p66588</link>
			<description><![CDATA[<p>Спасибо <strong>creature.ws</strong> за код, очень пригодится!</p><p>Оно бы может и без этого свершилось, но только через *опу <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Tue, 04 Dec 2012 11:06:16 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=66588#p66588</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Чтение txt и открытие файла из строки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=66586#p66586</link>
			<description><![CDATA[<p>ТОВАРИЩИ! СВЕРШИЛОСЬ <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p><p>Не знаю как Вас благодарить, всех, кто мне помог!)</p><p>Спасибо!</p>]]></description>
			<author><![CDATA[null@example.com (Maxfashko)]]></author>
			<pubDate>Tue, 04 Dec 2012 11:00:28 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=66586#p66586</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Чтение txt и открытие файла из строки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=66584#p66584</link>
			<description><![CDATA[<p>DropFiles( &quot;D:\work\Script VAR\готовые\&quot; FileName &quot;.psd&quot;, &quot;Вариограф&quot; )</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Tue, 04 Dec 2012 10:54:51 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=66584#p66584</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Чтение txt и открытие файла из строки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=66583#p66583</link>
			<description><![CDATA[<p>вот тут маленькая поправочка не получиться всегда обращаться к классу. Он всегда меняется, когда программа открывается в другом окне<br />DropFiles( &quot;D:\work\Script VAR\готовые\&quot; FileName &quot;.psd&quot;, &quot;ahk_class Afx:00410000:8:00010003:00000000:048809A5&quot; )</p><p>сейчас вот он стал Вариограф<br />ahk_class Afx:00410000:8:00010003:00000000:0E8D0AA3</p>]]></description>
			<author><![CDATA[null@example.com (Maxfashko)]]></author>
			<pubDate>Tue, 04 Dec 2012 10:53:20 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=66583#p66583</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Чтение txt и открытие файла из строки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=66582#p66582</link>
			<description><![CDATA[<p><strong>creature.ws</strong><br />А что можно лишнего убрать?</p><p>DropFiles(ByRef fileList, windowTitle := &quot;&quot;, ctrl := &quot;&quot;, x := 0, y := 0, NCA := 0)<br />на<br />DropFiles(ByRef fileList, windowTitle )</p><p>и это удалять или оно может понадобится?<br />&nbsp; &nbsp; NumPut(x, pDP + 4, &quot;UInt&quot;)<br />&nbsp; &nbsp; NumPut(y, pDP + 8, &quot;UInt&quot;)<br />&nbsp; &nbsp; NumPut(NCA, pDP + 12, &quot;UInt&quot;)</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Tue, 04 Dec 2012 10:49:08 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=66582#p66582</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Чтение txt и открытие файла из строки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=66581#p66581</link>
			<description><![CDATA[<p><strong>creature.ws</strong><br /></p><div class="quotebox"><blockquote><p>Граждане, а зачем вы полностью цитируете предыдущее сообщение?</p></blockquote></div><p>Да кто нас знает, места много <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Tue, 04 Dec 2012 10:44:25 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=66581#p66581</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Чтение txt и открытие файла из строки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=66580#p66580</link>
			<description><![CDATA[<p>Направьте мозг в нужный поток=)<br />Как это использовать в моём случае?</p>]]></description>
			<author><![CDATA[null@example.com (Maxfashko)]]></author>
			<pubDate>Tue, 04 Dec 2012 10:44:22 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=66580#p66580</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Чтение txt и открытие файла из строки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=66579#p66579</link>
			<description><![CDATA[<p>Видимо в неправильно сформированной структуре dropFiles.<br />Процедура, приведенная выше, срисована кажется из кода teadrinker&#039;а.</p><p>Граждане, а зачем вы полностью цитируете предыдущее сообщение? <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (creature.ws)]]></author>
			<pubDate>Tue, 04 Dec 2012 10:39:35 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=66579#p66579</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Чтение txt и открытие файла из строки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=66578#p66578</link>
			<description><![CDATA[<p><strong>creature.ws</strong><br />КРУТО!!!<br />А в чём трабла была, если не трудно...</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Tue, 04 Dec 2012 10:35:03 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=66578#p66578</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Чтение txt и открытие файла из строки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=66577#p66577</link>
			<description><![CDATA[<div class="quotebox"><cite>creature.ws пишет:</cite><blockquote><div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Я не нашёл решение <a href="http://www.autohotkey.com/board/topic/41467-make-ahk-drop-files-into-other-applications/">http://www.autohotkey.com/board/topic/4 … lications/</a> <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" /></p></blockquote></div><div class="codebox"><pre><code>DropFiles(ByRef fileList, windowTitle := &quot;&quot;, ctrl := &quot;&quot;, x := 0, y := 0, NCA := 0)
{
    offset := 20
    VarSetCapacity(dropFiles, StrLen(fileList) + offset, 0)
    pDP := &amp;dropFiles

    loop, parse, fileList, `n, `r
        StrPut(A_LoopField, pDP + offset, StrLen(A_LoopField), &quot;CP0&quot;)
        , offset += StrLen(A_LoopField) + 4
        , NumPut(0, pDP + offset - 4, &quot;UInt&quot;)

    NumPut(0, pDP + offset, &quot;UInt&quot;)
    NumPut(20, pDP + 0, &quot;UInt&quot;)
    NumPut(x, pDP + 4, &quot;UInt&quot;)
    NumPut(y, pDP + 8, &quot;UInt&quot;)
    NumPut(NCA, pDP + 12, &quot;UInt&quot;)
    NumPut(0, pDP + 16, &quot;UInt&quot;)

    nSize := offset + 4
    hDrop := DllCall(&quot;GlobalAlloc&quot;, &quot;UInt&quot;, 0x42, &quot;UInt&quot;, nSize, &quot;Ptr&quot;)
    pData := DllCall(&quot;GlobalLock&quot;, &quot;Ptr&quot;, hDrop, &quot;Ptr&quot;)
    DllCall(&quot;RtlMoveMemory&quot;, &quot;Ptr&quot;, pData, &quot;Ptr&quot;, pDP, &quot;UInt&quot;, nSize)
    DllCall(&quot;GlobalUnlock&quot;, &quot;Ptr&quot;, hDrop)

    PostMessage, 0x233, hDrop, 0, %ctrl%, %windowTitle%
}</code></pre></div></blockquote></div><br /><p>Это как на китайском=)</p>]]></description>
			<author><![CDATA[null@example.com (Maxfashko)]]></author>
			<pubDate>Tue, 04 Dec 2012 10:32:26 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=66577#p66577</guid>
		</item>
	</channel>
</rss>
