<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Отдельное Gui с каждой строки txt]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14564&amp;type=atom" />
	<updated>2019-03-10T00:43:10Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14564</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отдельное Gui с каждой строки txt]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=132872#p132872" />
			<content type="html"><![CDATA[<p>Спасибо всем)</p>]]></content>
			<author>
				<name><![CDATA[Coffi]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38848</uri>
			</author>
			<updated>2019-03-10T00:43:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=132872#p132872</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отдельное Gui с каждой строки txt]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=132090#p132090" />
			<content type="html"><![CDATA[<p>Хэх, забудьте о том, что я говорил что циклы не помогут <img src="//forum.script-coding.com/img/smilies/big_smile.png" width="15" height="15" />. Не додумался бы использовать вайл внутри цикла.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2019-02-09T20:02:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=132090#p132090</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отдельное Gui с каждой строки txt]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=132089#p132089" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>FileRead, out, % A_ScriptFullPath
loop, parse, out, `n, `r
{ 
	Gui, Add, Text, x122 y49 w120 h40, % A_LoopField
	Gui, add, Button, gButton, % &quot;Продолжить&quot;
	Gui, Show, , % A_LoopField
	while !flag
		Sleep 10
	Gui, Destroy
	flag := 0
}
return

GuiClose:
Button:
	flag := 1
	return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-02-09T19:54:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=132089#p132089</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отдельное Gui с каждой строки txt]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=132086#p132086" />
			<content type="html"><![CDATA[<p>Самый оптимальный хотя и может быть более сложный в реализации вариант как по мне это скрытие/отображение необходимых элементов при нажатии кнопки &quot;Продолжить&quot;, нежели создание 3-х окон GUI. В таком случае воспользуйтесь GuiControl Show/Hide, если же все таки принципиально создавать несколько окон то Gui, Name: Add... позволяет создавать несколько окон. Цикл вам не поможет кстати, по крайней мере я не вижу варианта разумной реализации цикла для моего виденья вашей задачи. Вам нужен FileReadLine и какая-нибудь переменная-счётчик.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2019-02-09T19:41:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=132086#p132086</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Отдельное Gui с каждой строки txt]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=132085#p132085" />
			<content type="html"><![CDATA[<p>Привет. Много скриптов сделал, так и не получилось. Подскажите пожалуйста, как можно сделать так, чтобы скрипт создавал своё, отдельное Gui для каждой строки&nbsp; текстового документа. <br />1. Предположим, документ &quot;z.txt&quot;. <br />2. В нём есть 3 строки:<br />	Картинка<br />	Зелень<br />	Земля<br />3. При запуске скрипта, начиная с первой строки должен открываться Gui. То есть,<br />Текст в Gui &quot;Картинка&quot; и кнопка &quot;продолжить&quot;<br />4. При нажатии на кнопку &quot;Продолжить&quot; закрывается текущее Gui и открывается след. со словом &quot;Зелень&quot; и кнопка &quot;продолжить&quot; и т.д.<br /></p><div class="codebox"><pre><code>outer:
FileRead, out, % &quot;Ex.txt&quot;
loop, parse, out, `n, `r
{
Total := a_index
OutputVar := StrLen(A_LoopField)
LoopField := A_LoopField
Gui, Add, Text, x122 y49 w120 h40, % LoopField
Gui, add, Button, gGui, % &quot;Продолжить&quot;
Gui, Show, w479 h379, % LoopField
break
}
return</code></pre></div><p>5. Попробовал написать код, но не получилось. Помогите пожалуйста.</p>]]></content>
			<author>
				<name><![CDATA[Coffi]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38848</uri>
			</author>
			<updated>2019-02-09T18:59:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=132085#p132085</id>
		</entry>
</feed>
