<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: команда DropDownList. Как задать значение переменной]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11120&amp;type=atom" />
	<updated>2015-12-03T12:53:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11120</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: команда DropDownList. Как задать значение переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=99500#p99500" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, вроде бы все сделал.</p>]]></content>
			<author>
				<name><![CDATA[kimiga89]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33500</uri>
			</author>
			<updated>2015-12-03T12:53:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=99500#p99500</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: команда DropDownList. Как задать значение переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=99499#p99499" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>kimiga89</strong>, у нас принято реагировать на замечания модераторов. У вас сутки на исправление всех своих постов.</span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-12-03T12:31:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=99499#p99499</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: команда DropDownList. Как задать значение переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=99490#p99490" />
			<content type="html"><![CDATA[<p>Поставь знаки препинания&nbsp; в конце предложений! Хотя бы так &quot;.))&quot; .</p>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2015-12-03T09:42:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=99490#p99490</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: команда DropDownList. Как задать значение переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=99489#p99489" />
			<content type="html"><![CDATA[<p><strong>yalanne</strong> Спасибо! Буду разбираться.</p>]]></content>
			<author>
				<name><![CDATA[kimiga89]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33500</uri>
			</author>
			<updated>2015-12-03T09:30:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=99489#p99489</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: команда DropDownList. Как задать значение переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=99488#p99488" />
			<content type="html"><![CDATA[<p>Так??<br /></p><div class="codebox"><pre><code>Choice_list := []
Choice_list.Insert(&quot;Вариант1&quot;,&quot;memoris88&quot;)
Choice_list.Insert(&quot;Вариант2&quot;,&quot;soulking9000&quot;)
Choice_list.Insert(&quot;Вариант3&quot;,&quot;yalanne&quot;)

Gui +hwndid
Gui, Add, DropDownList, x5   yp+5  w120 h80 vChoice, Вариант1||Вариант2|Вариант3|Вариант4
Gui, Add, Edit        , xp   yp+25  w250 h100 vEdd1 ReadOnly +Wrap
Gui, Add, Edit        , xp   yp+105 w250 h100 vEdd2 +Wrap -WantReturn
Gui, Add, Edit        , xp   yp+105 w250 h100 vEdd3 +Wrap -WantReturn
Gui show
return

#if WinActive(&quot;ahk_id &quot; id)
F1::
F2::
F3::
Gui, Submit, NoHide
If A_ThisHotkey = F1
	GuiControl,,Edd1,% &quot;name1&quot; Edd3 &quot;name2&quot;
If A_ThisHotkey = F2
	GuiControl,,Edd1,% &quot;name3&quot; Edd1 &quot;name4&quot; Edd2 &quot;name5&quot;
If A_ThisHotkey = F3
	GuiControl,,Edd1,% &quot;name6&quot; Choice_list[Choice] &quot;name7&quot;
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2015-12-03T09:18:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=99488#p99488</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: команда DropDownList. Как задать значение переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=99484#p99484" />
			<content type="html"><![CDATA[<p><span style="color: Green"><strong>kimiga89</strong>, &quot;нужна помошь&quot; в названии темы не несёт смысловой нагрузки.<br />Предложения должны начинаться с заглавной буквы и заканчиваться знаком препинания.<br />Отредактируйте сообщение и название темы.</span></p><p>Поставленная задача непонятна.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2015-12-03T06:02:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=99484#p99484</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: команда DropDownList. Как задать значение переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=99480#p99480" />
			<content type="html"><![CDATA[<p>Вроде такая простая задача, но я чего-то вообще не пойму, как толком это сделать.<br />Есть скрипт:<br /></p><div class="codebox"><pre><code>Gui, Add, Edit, x46 y77 w120 h60 vEdd
Gui, Add, Button, x56 y167 w90 h20 gGogo, Данные
Gui, Add, Edit, x46 y227 w120 h60 vEdd2
Gui, Add, Edit, x46 y257 w120 h60 vEdd3
Gui, Add, DropDownList, x132 y240 w120 h80 vChoice, Вариант1|Вариант2

; Generated using SmartGUI Creator 4.0
Gui, Show, x131 y144 h377 w477, Моё окно!
Return

Gogo:
Gui, Submit, NoHide
F1:: sendinput, name%Edd3%name2
F2:: sendinput, name3%Edd%name4%Edd2%name5
F3:: sendinput, name6%Choice%name7
GuiControl,, Edd, 
return

GuiClose:
ExitApp
</code></pre></div><br /><br /><p>С полем Edit разобрался, а вот с DropDownList возникли проблемы.<br />В общем нужно так же как и в Edit, чтоб вставляло в середину строки данные,<br />т.е. нужно чтоб при выборе в DropDownList Вариант1&nbsp; &nbsp; &nbsp; &nbsp; F3:: sendinput, name6memoris88name7<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; а при&nbsp; &nbsp; Вариант2&nbsp; &nbsp; &nbsp; &nbsp; F3:: sendinput, name6soulking9000name7.</p><p>Как правильно задать чтоб при выборе Вариант1&nbsp; - это&nbsp; &nbsp; &nbsp; &nbsp;текст &quot;memoris88&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;а при&nbsp; &nbsp; Вариант2&nbsp; - текст &quot;soulking9000&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; вставлялся в коде вместо &quot;%Choice%&quot;.<br />Всем заранее +1 к карме и спасибище огромное.</p>]]></content>
			<author>
				<name><![CDATA[kimiga89]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33500</uri>
			</author>
			<updated>2015-12-03T00:57:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=99480#p99480</id>
		</entry>
</feed>
