<?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="http://forum.script-coding.com/extern.php?action=feed&amp;tid=14597&amp;type=atom" />
	<updated>2019-02-23T05:44:52Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=14597</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK | Помогите сделать зависимость от выбора]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=132358#p132358" />
			<content type="html"><![CDATA[<p>Для &quot;Gui, Add, DropDownList&quot; добавь еще gLabel. При выборе чего либо оно перейдет на метку Label.</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2019-02-23T05:44:52Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=132358#p132358</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK | Помогите сделать зависимость от выбора]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=132342#p132342" />
			<content type="html"><![CDATA[<p><strong>felrok</strong><br />Немного не понял(новенький в деле). В общем вот нужная часть исходного кода, и мне нужно, чтобы в неком файле config.ini (фото документа ниже) записался заранее написанный в коде ответ, зависящий от вопроса Question(1,2,3). Как сделать зависимость от вопроса, чтобы при выборе в GUI например Question1, писался ответ Answer1. Можете написать, что нужно и где приписать в коде?<br /></p><div class="codebox"><pre><code>Gui, Add, DropDownList, x138 y210 w250 h70 vVopros Choose%VoprosSel% , Question1|Question2|Question3
GuiControl,ChooseString,VoprosI, %Vopros%
Gui, Add, Button, x30 y380 w200 h40 gSave, Сохранить
return

ReadSettings:
IniRead,Vopros, config.ini, Setup, Vopros
return

IniWrite, %Vopros%, config.ini, Setup, Vopros
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[itachi.ichiha907]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39972</uri>
			</author>
			<updated>2019-02-22T15:23:40Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=132342#p132342</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK | Помогите сделать зависимость от выбора]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=132338#p132338" />
			<content type="html"><![CDATA[<p>Поставь кнопку:<br /></p><div class="codebox"><pre><code>Gui, add, button, gConfirm, Подтвердить
</code></pre></div><p> <br />И метку. Т.е. будет ждать нажатия кнопки и потом проводить запись. Только запись нужно вынести под метку Confirm</p>]]></content>
			<author>
				<name><![CDATA[felrok]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39478</uri>
			</author>
			<updated>2019-02-22T14:36:39Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=132338#p132338</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK | Помогите сделать зависимость от выбора]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=132337#p132337" />
			<content type="html"><![CDATA[<p>Мне нужно сделать так: после выбора в gui из списка вопроса, автоматически в текстовый документ config.ini записывался ответ Answer<br /></p><div class="codebox"><pre><code>Gui, Add, DropDownList, x138 y210 w250 h70 vEditSMI Choose%EditSMISel% , Question1|Question2|Question3
GuiControl,ChooseString,Vopros, %Vopros%</code></pre></div><div class="codebox"><pre><code>IniWrite, %Vopros%, config.ini, Setup, Vopros</code></pre></div><div class="codebox"><pre><code>gosub, ReadSettings
pash := 0
for_void := 0
IfExist, config.ini
gosub, ReadSettings
else
{
    Vopros=
    Answer=
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[itachi.ichiha907]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39972</uri>
			</author>
			<updated>2019-02-22T14:20:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=132337#p132337</id>
		</entry>
</feed>
