<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Цикл в GUI]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11279&amp;type=atom" />
	<updated>2016-02-01T18:15:42Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11279</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Цикл в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100766#p100766" />
			<content type="html"><![CDATA[<p><a href="http://www.script-coding.com/AutoHotkey/LoopReadFileContents.html">Loop (чтение файла).</a><br /><a href="http://www.script-coding.com/AutoHotkey/GUI.html#controls">Размещение и задание размеров элементов управления.</a><br /></p><div class="codebox"><pre><code>gui,+resize
gui, show,w200 h600
aFileRead = %A_scriptDir%\list.txt
Loop,read,% aFileRead
{
  gui, add, text,y+5, %A_LoopReadLine%
  sleep 1000
}
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2016-02-01T18:15:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100766#p100766</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Цикл в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100762#p100762" />
			<content type="html"><![CDATA[<p>Доброе время суток.<br />В AutoHotKey пишу не так давно. Подскажите пожалуйста что я не правильно указываю.<br />Код:<br /></p><div class="codebox"><pre><code>aFileRead = %A_WorkingDir%\list.txt
Loop
{
    FileReadLine, line, %aFileRead%, %A_Index%
	gui, add, text,, %line%
	gui, show
	sleep 2000
	return
}</code></pre></div><p>Что получается я хочу добиться данным кодом: получить в переменную <strong>aFileRead </strong>содержимое с файла <strong>list.txt </strong>и построчно отобразить с интервалом в 2 секунды используя <strong>GUI text</strong>. И еще момент, как можно сделать данное окно не в фокусе?</p>]]></content>
			<author>
				<name><![CDATA[lukas_endigo_91]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33312</uri>
			</author>
			<updated>2016-02-01T17:43:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100762#p100762</id>
		</entry>
</feed>
