<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Динамический текст]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=6508</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6508&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Динамический текст».]]></description>
		<lastBuildDate>Thu, 08 Dec 2011 04:01:47 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Динамический текст]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=54345#p54345</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Grey)]]></author>
			<pubDate>Thu, 08 Dec 2011 04:01:47 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=54345#p54345</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Динамический текст]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=54314#p54314</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Dixxx)]]></author>
			<pubDate>Tue, 06 Dec 2011 17:52:00 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=54314#p54314</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Динамический текст]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=54223#p54223</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (creature.ws)]]></author>
			<pubDate>Sat, 03 Dec 2011 20:55:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=54223#p54223</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Динамический текст]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=54217#p54217</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Dixxx)]]></author>
			<pubDate>Sat, 03 Dec 2011 19:12:07 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=54217#p54217</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Динамический текст]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=54088#p54088</link>
			<description><![CDATA[<p>Я внёс изменения.</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Wed, 30 Nov 2011 20:08:40 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=54088#p54088</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Динамический текст]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=54086#p54086</link>
			<description><![CDATA[<p>Большое спасибо, всё работает, но можно ли как то ограничить нажатие кнопки, т.е. дойдя до Ящик2 кнопка переставала действовать?</p>]]></description>
			<author><![CDATA[null@example.com (Dixxx)]]></author>
			<pubDate>Wed, 30 Nov 2011 19:48:01 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=54086#p54086</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Динамический текст]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=54083#p54083</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Wed, 30 Nov 2011 19:12:40 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=54083#p54083</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Динамический текст]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=54082#p54082</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Dixxx)]]></author>
			<pubDate>Wed, 30 Nov 2011 18:47:07 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=54082#p54082</guid>
		</item>
	</channel>
</rss>
