<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: IniRead в непоказанное окно]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9243&amp;type=atom" />
	<updated>2014-02-09T09:33:38Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9243</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: IniRead в непоказанное окно]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79948#p79948" />
			<content type="html"><![CDATA[<p>Если окно не создано, то и эл. упр. не существует, управлять нечем. А если нужно именно создать окно, чтобы эл. упр. сразу принял нужное значение,<br /></p><div class="codebox"><pre><code>Gui, 2:add, edit, vEdit, % varEdit</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2014-02-09T09:33:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79948#p79948</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: IniRead в непоказанное окно]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79943#p79943" />
			<content type="html"><![CDATA[<p>Хорошо, а если окно не показано, то как быть?</p>]]></content>
			<author>
				<name><![CDATA[Vasil]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31759</uri>
			</author>
			<updated>2014-02-09T09:18:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79943#p79943</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: IniRead в непоказанное окно]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79940#p79940" />
			<content type="html"><![CDATA[<p>Нет понятия &quot;окно закрыто&quot;.<br />Окно может быть:<br />1. Создано (командой Add)<br />&nbsp; 1.1 Показано (командой Show)<br />&nbsp; 1.2 Скрыто (командой Hide, командой Close или красным крестиком в заголовке окна)<br />2. Уничтожено (командой Destroy)</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2014-02-09T09:13:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79940#p79940</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: IniRead в непоказанное окно]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79927#p79927" />
			<content type="html"><![CDATA[<p><strong>ypppu,</strong><br /></p><div class="codebox"><pre><code>Load:
FileSelectFile, LoadTest,,, Выберите файл с настройками, *.ini
IniRead, varEdit, %LoadTest%, Main, test, %A_Space%
Gui, 2:Default
GuiControl,, Edit, % varEdit
return
</code></pre></div><p>Если сделать так, как сказали вы, то он будет управлять Edit только если окно активное/неактивное, а если второе окно не показано? То есть, я нажал на кнопку &quot;Загрузить&quot;, выбрал .ini, потом нажал на кнопку &quot;test&quot;, и у меня сразу появился текст считанный из .ini.</p>]]></content>
			<author>
				<name><![CDATA[Vasil]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31759</uri>
			</author>
			<updated>2014-02-09T08:47:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79927#p79927</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: IniRead в непоказанное окно]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79925#p79925" />
			<content type="html"><![CDATA[<p>Опишите поподробнее, что за посыл информации и в какое именно окно.<br />Судя по коду, Вы хотите изменить эл. упр. Edit, относящийся к окну &quot;2&quot;. Но оно не является <em>окном по умолчанию</em>.</p><div class="quotebox"><cite>Документация пишет:</cite><blockquote><p><strong>Gui, GuiName:Default</strong><br />Changes the current thread&#039;s default GUI window name, which is used whenever a window name is not specified for GuiControl, GuiControlGet, and the Gui command itself. In the following example, the default window name is changed to &quot;MyGui&quot;: Gui MyGui:Default. See thread&#039;s default window for more information about the default window.</p></blockquote></div><p>Чтобы для текущего потока (а именно для команды GuiControl) окно &quot;2&quot; стало <em>окном по умолчанию</em>, необходимо выполнить команду </p><div class="codebox"><pre><code>Gui, 2:Default</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2014-02-09T08:33:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79925#p79925</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: IniRead в непоказанное окно]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79909#p79909" />
			<content type="html"><![CDATA[<p>Приветствую всех. Случилась такая проблема, не могу послать информацию в не показанное окно GUI. Вот код:<br /></p><div class="codebox"><pre><code>Gui, add, button, gtest, test
Gui, add, button, gload, Загрузить
Gui, show
return

test:
Gui, 2:Destroy
Gui, 2:add, edit, vEdit,
Gui, 2:show
return

Load:
FileSelectFile, LoadTest,,, Выберите файл с настройками, *.ini
IniRead, varEdit, %LoadTest%, Main, test, %A_Space%
Gui, Submit, NoHide
GuiControl,, Edit, % varEdit
return

GuiClose:
ExitApp</code></pre></div><p>Но если я поставлю кнопку загрузки во второе окно, то все работает. В чем проблема?</p>]]></content>
			<author>
				<name><![CDATA[Vasil]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31759</uri>
			</author>
			<updated>2014-02-09T07:07:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79909#p79909</id>
		</entry>
</feed>
