<?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 + Hotkey]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=17476</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=17476&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: DropDownList + Hotkey».]]></description>
		<lastBuildDate>Sun, 20 Nov 2022 13:37:52 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: DropDownList + Hotkey]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155729#p155729</link>
			<description><![CDATA[<p><strong>teadrinker</strong>, спасибо большое!</p>]]></description>
			<author><![CDATA[null@example.com (will)]]></author>
			<pubDate>Sun, 20 Nov 2022 13:37:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155729#p155729</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: DropDownList + Hotkey]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155725#p155725</link>
			<description><![CDATA[<p>Смотрите команду Switch.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 20 Nov 2022 10:05:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155725#p155725</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: DropDownList + Hotkey]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155724#p155724</link>
			<description><![CDATA[<p><strong>teadrinker</strong>, хорошо а как сделать чтоб при Item1 выполнялось 1 действие, а при Item2 Другое ? Вывод я сам ещё разобрался давно, а вот с этим проблема.</p>]]></description>
			<author><![CDATA[null@example.com (will)]]></author>
			<pubDate>Sun, 20 Nov 2022 10:03:44 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155724#p155724</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: DropDownList + Hotkey]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155723#p155723</link>
			<description><![CDATA[<p>Пример:<br /></p><div class="codebox"><pre><code>Gui, Add, DropDownList, vMyList, Item1||Item2|Item3
Gui, Show

F10::
   GuiControlGet, MyList
   MsgBox, % MyList
   Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 19 Nov 2022 21:03:43 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155723#p155723</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: DropDownList + Hotkey]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155722#p155722</link>
			<description><![CDATA[<p><strong>__Михаил__</strong> я не понял в этой справке, поэтому и обратился на форум чтоб мне помогли и дали&nbsp; пример как это сделать...</p>]]></description>
			<author><![CDATA[null@example.com (will)]]></author>
			<pubDate>Sat, 19 Nov 2022 18:45:18 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155722#p155722</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: DropDownList + Hotkey]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155721#p155721</link>
			<description><![CDATA[<p>В справке же написано как хранить переменные у элементов управления - <a href="https://www.script-coding.com/AutoHotkey/GUIControls.html#dropdownlist">GUIControls</a>. Как вы вообще хотите программировать если не знаете простого?</p>]]></description>
			<author><![CDATA[null@example.com (__Михаил__)]]></author>
			<pubDate>Sat, 19 Nov 2022 18:33:33 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155721#p155721</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: DropDownList + Hotkey]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155718#p155718</link>
			<description><![CDATA[<p><strong>__Михаил__</strong>,&nbsp; не понял, как тогда сделать чтоб при активации клавиши, срабатывало то что выбрано в DropDownList? Можно не большой пример или более подробно?</p>]]></description>
			<author><![CDATA[null@example.com (will)]]></author>
			<pubDate>Sat, 19 Nov 2022 17:34:20 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155718#p155718</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: DropDownList + Hotkey]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155717#p155717</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>...когда ты выбираешь что то в DropDownList она сразу активируется...</p></blockquote></div><p>Метку убрать - вопрос решён. Зачем городить лишнее?</p>]]></description>
			<author><![CDATA[null@example.com (__Михаил__)]]></author>
			<pubDate>Sat, 19 Nov 2022 17:19:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155717#p155717</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: DropDownList + Hotkey]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155716#p155716</link>
			<description><![CDATA[<p><strong>__Михаил__</strong>, можно но у многих разное понимание лишних команд. <br /></p><div class="codebox"><pre><code>SetWorkingDir %A_ScriptDir%
SetBatchLines -1

IniRead, Key,data/test2.egl, USER, Key

Gui Font, s9, Segoe UI
Gui Add, DropDownList,  x8 y8 w218 gVib,Test|Test1|
Gui Add, Hotkey, x8 y40 w218 h23 vKey,%Key% 
Gui Add, Button, x8 y68 w218 h23 gSave, &amp;Save

Gui Show, w230 h100, Test
Return

GuiEscape:
GuiClose:
    ExitApp

Save:
Gui, submit, nohide
IniWrite, %Key%,data/test2.egl, USER, Key
HotKey, %Key%, Off, UseErrorLevel
Gui, Submit, NoHide,
HotKey, %Key%, Activate, On, UseErrorLevel
Return


Vib:
   if A_GuiControl = Test
      Goto Ac1
   if A_GuiControl = Test1
      Goto Ac2
Return

Ac1:
        Loop, 5
            {
                MsgBox, tyda11
Sleep 1500
            }
Return

Ac2:
        Loop, 5
            {
                MsgBox, tyda12
    Sleep 1500
            }
Return
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (will)]]></author>
			<pubDate>Sat, 19 Nov 2022 16:08:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155716#p155716</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: DropDownList + Hotkey]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155713#p155713</link>
			<description><![CDATA[<p>Нельзя ли выложить нормальный пример без лишних команд?</p>]]></description>
			<author><![CDATA[null@example.com (__Михаил__)]]></author>
			<pubDate>Sat, 19 Nov 2022 15:47:35 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155713#p155713</guid>
		</item>
		<item>
			<title><![CDATA[AHK: DropDownList + Hotkey]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155711#p155711</link>
			<description><![CDATA[<p>Всем привет, суть в том что когда ты выбираешь что то в DropDownList она сразу активируется, а мне надо чтоб оно активировалась по клавише (В скрипте &quot;Activate&quot; тк. Hotkey). Заранее спасибо за помощь.<br /></p><div class="codebox"><pre><code>SetWorkingDir %A_ScriptDir%
SetBatchLines -1

IniRead, Key,data/test2.egl, USER, Key

Gui Font, s9, Segoe UI
Gui Add, DropDownList,  x8 y8 w218 gVib,Test|Test1|Test2|Test3[/color]
GuiControl, ChooseString, Vib, %Vib%
Gui Add, Hotkey, x8 y40 w218 h23 vKey,%Key%
Gui Add, Button, x8 y68 w218 h23 gSave, &amp;Save

Gui Show, w230 h100, Test
Return

GuiEscape:
GuiClose:
    ExitApp

Save:
Gui, submit, nohide
IniWrite, %Key%,data/test2.egl, USER, Key
HotKey, %Key%, Off, UseErrorLevel
Gui, Submit, NoHide,
HotKey, %Key%, Activate, On, UseErrorLevel
Return


Vib:
   if A_GuiControl = Test
      Goto Ac1
   if A_GuiControl = Test1
      Goto Ac2
   if A_GuiControl = Test2
      Goto Ac3
   if A_GuiControl = Test3
      Goto Ac4
Return

Ac1:
        Loop, 5
            {
                MsgBox, tyda11
Sleep 1500
            }
Return

Ac2:
        Loop, 5
            {
                MsgBox, tyda12
    Sleep 1500
            }
Return

Ac3:
        Loop, 5
            {
                MsgBox, tyda13
    Sleep 1500
            }
Return

Ac4:
        Loop, 5
            {
                MsgBox, tyda14
    Sleep 1500
            }
Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (will)]]></author>
			<pubDate>Sat, 19 Nov 2022 15:33:26 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155711#p155711</guid>
		</item>
	</channel>
</rss>
