<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: команда DropDownList. Как задать значение переменной]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=11120</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11120&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: команда DropDownList. Как задать значение переменной».]]></description>
		<lastBuildDate>Thu, 03 Dec 2015 12:53:58 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: команда DropDownList. Как задать значение переменной]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99500#p99500</link>
			<description><![CDATA[<p><strong>teadrinker</strong>, вроде бы все сделал.</p>]]></description>
			<author><![CDATA[null@example.com (kimiga89)]]></author>
			<pubDate>Thu, 03 Dec 2015 12:53:58 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99500#p99500</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: команда DropDownList. Как задать значение переменной]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99499#p99499</link>
			<description><![CDATA[<p><span style="color: green"><strong>kimiga89</strong>, у нас принято реагировать на замечания модераторов. У вас сутки на исправление всех своих постов.</span></p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Thu, 03 Dec 2015 12:31:47 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99499#p99499</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: команда DropDownList. Как задать значение переменной]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99490#p99490</link>
			<description><![CDATA[<p>Поставь знаки препинания&nbsp; в конце предложений! Хотя бы так &quot;.))&quot; .</p>]]></description>
			<author><![CDATA[null@example.com (yalanne)]]></author>
			<pubDate>Thu, 03 Dec 2015 09:42:22 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99490#p99490</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: команда DropDownList. Как задать значение переменной]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99489#p99489</link>
			<description><![CDATA[<p><strong>yalanne</strong> Спасибо! Буду разбираться.</p>]]></description>
			<author><![CDATA[null@example.com (kimiga89)]]></author>
			<pubDate>Thu, 03 Dec 2015 09:30:16 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99489#p99489</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: команда DropDownList. Как задать значение переменной]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99488#p99488</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (yalanne)]]></author>
			<pubDate>Thu, 03 Dec 2015 09:18:11 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99488#p99488</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: команда DropDownList. Как задать значение переменной]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99484#p99484</link>
			<description><![CDATA[<p><span style="color: Green"><strong>kimiga89</strong>, &quot;нужна помошь&quot; в названии темы не несёт смысловой нагрузки.<br />Предложения должны начинаться с заглавной буквы и заканчиваться знаком препинания.<br />Отредактируйте сообщение и название темы.</span></p><p>Поставленная задача непонятна.</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Thu, 03 Dec 2015 06:02:08 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99484#p99484</guid>
		</item>
		<item>
			<title><![CDATA[AHK: команда DropDownList. Как задать значение переменной]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99480#p99480</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (kimiga89)]]></author>
			<pubDate>Thu, 03 Dec 2015 00:57:37 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99480#p99480</guid>
		</item>
	</channel>
</rss>
