<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Динамический текст]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6508&amp;type=atom" />
	<updated>2011-12-08T04:01:47Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6508</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Динамический текст]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=54345#p54345" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Hotkey, F12, SaveHotkey
Gui, Add, Edit, vName x12 y10 w90 h20 Center, Тест
Gui, Add, Button, gSaveButton x112 y10 w90 h20 Center, Save(F12)
Gui, +AlwaysOnTop -MaximizeBox -MinimizeBox -Resize
Gui, Show, w219 h45, Test GUI
Return

SaveHotkey:
   GuiControlGet, Name,, Name
   IniWrite, % Name, % A_WorkingDir &quot;\2.ini&quot;, Join, Name
   Return

SaveButton:
   Gui, Submit, NoHide
   IniWrite, % Name, % A_WorkingDir &quot;\2.ini&quot;, Join, Name
   Return

GuiClose:
   ExitApp</code></pre></div><p>2<strong>Dixxx</strong> Всё срабатывает при первом нажатии.</p>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2011-12-08T04:01:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=54345#p54345</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Динамический текст]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=54314#p54314" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>creature.ws пишет:</cite><blockquote><p><a href="http://www.script-coding.com/AutoHotkey/GUI.html#actions">Справка</a>.<br />Использовать <a href="http://l.autohotkey.net/docs/commands/GuiControlGet.htm">GuiControlGet</a></p></blockquote></div><p>Спасибо. После нажатия кнопки в .ini файле появляются только<br /></p><div class="codebox"><pre><code>[Join]
Name=</code></pre></div><p>Если же нажать кнопку ещё раз, то<br /></p><div class="codebox"><pre><code>[Join]
Name=Тест</code></pre></div><p>Как избавиться от этого?</p><p>p.s. Тест = %Name%</p>]]></content>
			<author>
				<name><![CDATA[Dixxx]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27391</uri>
			</author>
			<updated>2011-12-06T17:52:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=54314#p54314</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Динамический текст]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=54223#p54223" />
			<content type="html"><![CDATA[<p><a href="http://www.script-coding.com/AutoHotkey/GUI.html#actions">Справка</a>.<br />Использовать <a href="http://l.autohotkey.net/docs/commands/GuiControlGet.htm">GuiControlGet</a></p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2011-12-03T20:55:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=54223#p54223</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Динамический текст]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=54217#p54217" />
			<content type="html"><![CDATA[<p>Да бы тем не плодить, помогите ещё с одним вопросом.<br /></p><div class="codebox"><pre><code>Gui, Add, Edit, x66 y7 w310 h20 vName,</code></pre></div><p>по нажатию кнопки должно записаться в ini файл<br /></p><div class="codebox"><pre><code>IniWrite, %Name%, %A_WorkingDir%\2.ini, Join, Name</code></pre></div><p>но записи не происходит, как с этим разобраться?</p><p>p.s. записаться должно то, что вписано в поле Edit</p>]]></content>
			<author>
				<name><![CDATA[Dixxx]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27391</uri>
			</author>
			<updated>2011-12-03T19:12:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=54217#p54217</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Динамический текст]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=54088#p54088" />
			<content type="html"><![CDATA[<p>Я внёс изменения.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2011-11-30T20:08:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=54088#p54088</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Динамический текст]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=54086#p54086" />
			<content type="html"><![CDATA[<p>Большое спасибо, всё работает, но можно ли как то ограничить нажатие кнопки, т.е. дойдя до Ящик2 кнопка переставала действовать?</p>]]></content>
			<author>
				<name><![CDATA[Dixxx]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27391</uri>
			</author>
			<updated>2011-11-30T19:48:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=54086#p54086</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Динамический текст]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=54083#p54083" />
			<content type="html"><![CDATA[<p>Попробуйте:<br /></p><div class="codebox"><pre><code>n := 0
 
Gui, Add, Text, x16 y27 w100 h20 , Название фрукта:
Gui, Add, Text, x16 y87 w100 h20 , Вес:
Gui, Add, Text, x156 y27 w100 h20 vNazvan, %Nazavanie%
Gui, Add, Text, x156 y87 w100 h20 vVes, %Ves%
Gui, Add, Button, x86 y127 w100 h20 gNext, Следующ
Gui, Show, x493 y280 h162 w274, Фрукты
Return
 
 
Next:
If n&lt;2
{
n := n+1
IniRead, Nazavanie, %A_WorkingDir%\Sample.ini, Ящик%n%, Название фрукта
IniRead, Ves, %A_WorkingDir%\Sample.ini, Ящик%n%, Вес
GUIControl, , Nazvan, %Nazavanie%
GUIControl, , Ves, %Ves%
GUI submit, NoHide
}
Return
 
 
GuiClose:
ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2011-11-30T19:12:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=54083#p54083</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Динамический текст]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=54082#p54082" />
			<content type="html"><![CDATA[<p>Помогите пожалуйста разобраться с заменой текста.<br />Чисто для примера:</p><div class="codebox"><pre><code>IniRead, %Nazavanie%, %A_WorkingDir%\Sample.ini, Ящик1, Название фрукта
IniRead, %Ves%, %A_WorkingDir%\Sample.ini, Ящик1, Вес
Gui, Add, Text, x16 y27 w100 h20 , Название фрукта:
Gui, Add, Text, x16 y87 w100 h20 , Вес:
Gui, Add, Text, x156 y27 w100 h20 , %Nazavanie%
Gui, Add, Text, x156 y87 w100 h20 , %Ves%
Gui, Add, Button, x86 y127 w100 h20 , Следующ
Gui, Show, x493 y280 h162 w274, Фрукты
Return
GuiClose:
ExitApp</code></pre></div><p>Содержание Sample.ini файла<br /></p><div class="codebox"><pre><code>[Ящик1]
Название фрукта=Яблоко
Вес=5
[Ящик2]
Название фрукта=Груша
Вес=9</code></pre></div><p>Нужно чтобы после нажатия на кнопку Следующ данные были из Ящик2.</p>]]></content>
			<author>
				<name><![CDATA[Dixxx]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27391</uri>
			</author>
			<updated>2011-11-30T18:47:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=54082#p54082</id>
		</entry>
</feed>
