<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Привязка текстового файла к GUI]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=14167</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14167&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Привязка текстового файла к GUI».]]></description>
		<lastBuildDate>Sat, 15 Sep 2018 17:55:41 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Привязка текстового файла к GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=128698#p128698</link>
			<description><![CDATA[<p><strong>besmojio4b</strong>,&nbsp; </p><div class="codebox"><pre><code>Fileread, Text, %A_WorkingDir%/S.txt ; В переменную Text копируем содержание файла S.txt (Вместо %A_WorkingDir%/S.txt вставить свой путь к нужному файлу).
Gui, Add, Edit, +ReadOnly w170 h150 vText ; Добавляем Edit с высотой 150 шириной 170, который будет отображать значение переменной Text (+ReadOnly не позволяет изменять поле Edit, но даёт скопировать).
GuiControl, , Text, %Text% ; Говорим, что в Edit нужно отобразить значение переменной Text.
Gui, show, w200 h200 ;Показываем окно.
return	</code></pre></div><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;Без комментариев</div><div class="fancy_spoiler"><div class="codebox"><pre><code> Fileread, Text, %A_WorkingDir%/S.txt
 Gui, Add, Edit, +ReadOnly w170 h150 vText
GuiControl, , Text, %Text%
Gui, show, w200 h200
return	</code></pre></div></div></div><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;Ссылки</div><div class="fancy_spoiler"><p><a href="https://autohotkey.com/docs/Variables.htm#WorkingDir">A_WorkingDir</a><br /><a href="https://autohotkey.com/docs/commands/GuiControl.htm">GuiControl</a><br /><a href="https://autohotkey.com/docs/commands/FileRead.htm">FileRead</a></p></div></div>]]></description>
			<author><![CDATA[null@example.com (Gutalin)]]></author>
			<pubDate>Sat, 15 Sep 2018 17:55:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=128698#p128698</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Привязка текстового файла к GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=128691#p128691</link>
			<description><![CDATA[<p>Добавьте в свое GUI Edit-поле.<br /></p><div class="codebox"><pre><code>Gui, Add, Edit, vEdit</code></pre></div><p>Потом изменяйте его с переходом на новую строку.<br />Пример:<br /></p><div class="codebox"><pre><code>
Loop 10{
a = Новая строка
Edit = %Edit% `n%a%  
msgbox, % Edit
}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (qqlexa)]]></author>
			<pubDate>Sat, 15 Sep 2018 11:26:35 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=128691#p128691</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Привязка текстового файла к GUI]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=128690#p128690</link>
			<description><![CDATA[<p>Нужно, чтобы все данные из текстового файла, которые будут в нём появляться, высвечивались в отдельном GUI интерфейсе, просто, как чатлог, по строкам.</p>]]></description>
			<author><![CDATA[null@example.com (besmojio4b)]]></author>
			<pubDate>Sat, 15 Sep 2018 06:12:33 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=128690#p128690</guid>
		</item>
	</channel>
</rss>
