<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Набор текста из html файла, с интервалом]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=10859</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10859&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Набор текста из html файла, с интервалом».]]></description>
		<lastBuildDate>Sat, 15 Aug 2015 12:17:44 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Набор текста из html файла, с интервалом]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=96465#p96465</link>
			<description><![CDATA[<p>Что то типа этого?<br /></p><div class="codebox"><pre><code>SetKeyDelay, 10, 10
IF !FileExist(&quot;AutoHotkey.html&quot;)
    UrlDownloadToFile, http://www.script-coding.com/AutoHotkeyTranslation.html , AutoHotkey.html
    
FileRead text, AutoHotkey.html
    Run notepad.exe
    WinWait ahk_exe notepad.exe
    hwnd_notepad := WinActive(&quot;A&quot;)

for n, element in Search_Items(text,&quot;&lt;LI&gt;&lt;a href=&quot;&quot;.+&quot;&quot;&gt;(.+)&lt;/a&gt;&quot;)
    {
    Random,wait,1000,5000
    sleep %wait%
    if !WinExist(&quot;ahk_id &quot; hwnd_notepad)
        ExitApp
    ControlSendRaw Edit1,%element%`n,ahk_id %hwnd_notepad%
    }
    
Search_Items(text,RegEx){
    finds:=[],pos:=1
    While pos:= RegExMatch(text,RegEx,m,StrLen(m)+pos)
        finds.Insert(m1)
    return finds
}

Esc::ExitApp</code></pre></div><p>Скрипт будет печатать в блокноте имена под тем с <a href="http://www.script-coding.com/AutoHotkeyTranslation.html">русской вики ahk</a>.<br />шаблон для этого: </p><div class="codebox"><pre><code>&lt;LI&gt;&lt;a href=&quot;&quot;.+&quot;&quot;&gt;(.+)&lt;/a&gt;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (yalanne)]]></author>
			<pubDate>Sat, 15 Aug 2015 12:17:44 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=96465#p96465</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Набор текста из html файла, с интервалом]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=96363#p96363</link>
			<description><![CDATA[<p><strong>Ganya</strong>&nbsp; Вам <a href="http://forum.script-coding.com/viewtopic.php?id=5421">сюда</a> , оформите тему правильно. Иначе вам никто не ответит.</p>]]></description>
			<author><![CDATA[null@example.com (Ядрён)]]></author>
			<pubDate>Sun, 09 Aug 2015 19:19:30 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=96363#p96363</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Набор текста из html файла, с интервалом]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=96360#p96360</link>
			<description><![CDATA[<p>Добрый день.<br />Интересует вопрос, можно ли заставить AHK печатать указанный текст, который содержится в каком то указанном файле (в моем случает ето html код).</p><p>При этом существует ли возможность, печатать текст например с рандомным интервалом от 1 до 5 секунд, и что бы раз в час, скрипт останавливался на 15 минут ?</p>]]></description>
			<author><![CDATA[null@example.com (ganya)]]></author>
			<pubDate>Sun, 09 Aug 2015 17:08:08 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=96360#p96360</guid>
		</item>
	</channel>
</rss>
