<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Сохранение параметра ListBox]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15359&amp;type=atom" />
	<updated>2020-05-13T14:43:27Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15359</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение параметра ListBox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139505#p139505" />
			<content type="html"><![CDATA[<p>Можно. Для этого нужно сохранять текущие настройки в файл или в реестр или куда ещё. А при запуске скрипта считывать эти настройки.<br />Вот тренировочный пример.<br /></p><div class="codebox"><pre><code>Gui, Font, ,
Gui, Add, ListBox, x20 y30 w75 h80 vList AltSubmit, Один|Два|Три|
Gui, Add, Button, x122 y30 w60 h25 gFunction, Функция
Gui, Add, Button, x202 y30 w60 h25 gFunction2, Функция2
Gui, Show, w305 h170, Window
Return

Function:
GuiControl, Choose, List, 2
Soundbeep
Return

Function2:
GUI, Submit, NoHide
msgbox, %List%
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2020-05-13T14:43:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139505#p139505</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение параметра ListBox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139503#p139503" />
			<content type="html"><![CDATA[<p><a href="http://forum.script-coding.com/viewtopic.php?pid=139211#p139211">http://forum.script-coding.com/viewtopi … 11#p139211</a></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-05-13T14:32:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139503#p139503</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Сохранение параметра ListBox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139494#p139494" />
			<content type="html"><![CDATA[<p>Здравствуйте!<br />Имею данный код:</p><div class="codebox"><pre><code>Gui, Font, ,
Gui, Add, ListBox, x20 y30 w75 h80 vList AltSubmit, Один|Два|Три|
Gui, Add, Button, x122 y30 w60 h25 gFunction, Функция
Gui, Show, w205 h170, Window
return</code></pre></div><p>Вопрос следующий:<br />Можно ли сделать так, если я в ListBox выберу, к примеру, параметр &quot;Два&quot;, то при следующем запуске AHK, этот параметр будет автоматически выбран?</p>]]></content>
			<author>
				<name><![CDATA[efremov30ev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40687</uri>
			</author>
			<updated>2020-05-13T07:36:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139494#p139494</id>
		</entry>
</feed>
