<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Gui, DropDownList выбор из списка]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5327&amp;type=atom" />
	<updated>2010-12-30T15:41:44Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5327</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, DropDownList выбор из списка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43213#p43213" />
			<content type="html"><![CDATA[<p>супер вобще, спасибо огромное, таких быстрых ответов не ожидал</p>]]></content>
			<author>
				<name><![CDATA[vinternete]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25439</uri>
			</author>
			<updated>2010-12-30T15:41:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43213#p43213</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, DropDownList выбор из списка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43211#p43211" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>   Gui, Add, DropDownList, gChoose x6 y45 w200 h20 R3, 1|2|3
   Gui, Add, Text, vText cred x6 y75 w200 h20
   Gui, Show
   Return

Choose:
   if A_GuiControl = 1
      Goto, 1
   if A_GuiControl = 2
      Goto, 2
   if A_GuiControl = 3
      Goto, 3
   Return
   
1:
   GuiControl,, Text, metka 1
   Return
   
2:
   GuiControl,, Text, metka 2
   Return
3:
   GuiControl,, Text, metka 3
   Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2010-12-30T15:34:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43211#p43211</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, DropDownList выбор из списка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43209#p43209" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>InFlames пишет:</cite><blockquote><p>Есть более универсальный способ, чем писать ~100 пресетов<br />Минус единственный - прокачивать скиллы придется руками, т.к. они меняют свое положение при прокачке.</p></blockquote></div><p>хм, сделать одну кликалку по ячейкам вместо замены кнопок для каждого персонажа? гениально, спасибо</p><p>но хотелось бы всетаки разобратся с дроп меню<br />как сделать чтобы при выборе 3, в:<br /> Gui, Add, DropDownList, , 1|2|3|4<br /> переходило к метке 3<br /> а при выборе 2, переходило к метке 2</p>]]></content>
			<author>
				<name><![CDATA[vinternete]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25439</uri>
			</author>
			<updated>2010-12-30T15:31:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43209#p43209</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, DropDownList выбор из списка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43208#p43208" />
			<content type="html"><![CDATA[<p>Есть более универсальный способ, чем писать ~100 пресетов<br />Минус единственный - прокачивать скиллы придется руками, т.к. они меняют свое положение при прокачке.<br /></p><div class="codebox"><pre><code>;~   5 6
;~ 1 2 3 4
#NoEnv
#SingleInstance, force
#IfWinActive ahk_class Wаrсrаft III
SetBatchLines, -1

X1:=A_ScreenWidth*0.8
X2:=X5:=A_ScreenWidth*0.85
X3:=X6:=A_ScreenWidth*0.9
X4:=A_ScreenWidth*0.95

Y1:=Y2:=Y3:=Y4:=A_ScreenHeight*0.95
Y5:=Y6:=A_ScreenHeight*0.88

q::
MouseGetPos, X, Y
SendPlay {click, %X1%, %Y1%}{click, %X%, %Y%, 0}
Return

w::
MouseGetPos, X, Y
SendPlay {click, %X2%, %Y2%}{click, %X%, %Y%, 0}
Return

e::
MouseGetPos, X, Y
SendPlay {click, %X3%, %Y3%}{click, %X%, %Y%, 0}
Return

r::
MouseGetPos, X, Y
SendPlay {click, %X4%, %Y4%}{click, %X%, %Y%, 0}
Return

d::
MouseGetPos, X, Y
SendPlay {click, %X5%, %Y5%}{click, %X%, %Y%, 0}
Return

f::
MouseGetPos, X, Y
SendPlay {click, %X6%, %Y6%}{click, %X%, %Y%, 0}
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2010-12-30T15:19:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43208#p43208</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, DropDownList выбор из списка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43207#p43207" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><div class="quotebox"><cite>vinternete пишет:</cite><blockquote><p>но я не знаю что означает приставка &quot;v&quot; и &quot;g&quot;</p></blockquote></div><p><a href="http://script-coding.com/AutoHotkey/GUI.html#actions">Опции, задающие элементам управления действия и переменные</a></p></blockquote></div><p>да тут не в варкрафте дело, просто незнаю как сделать чтобы например<br /></p><div class="codebox"><pre><code>Gui, Add, DropDownList,, x6 y45 w200 h20 , 1|2|3


2:
Gui, Submit, NoHide
Gui, Add, Text,cred x6 y75 w200 h20 , metka 2
Gui, Show 
Return
3:
Gui, Submit, NoHide
Gui, Add, Text,cred x6 y75 w200 h20 , metka 3
Gui, Show 
Return</code></pre></div><p>при выборе 2 переходило к метке 2.<br />при выборе 1 переходило к метке 1.</p>]]></content>
			<author>
				<name><![CDATA[vinternete]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25439</uri>
			</author>
			<updated>2010-12-30T15:17:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43207#p43207</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, DropDownList выбор из списка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43206#p43206" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>vinternete пишет:</cite><blockquote><p>но я не знаю что означает приставка &quot;v&quot; и &quot;g&quot;</p></blockquote></div><p><a href="http://script-coding.com/AutoHotkey/GUI.html#actions">Опции, задающие элементам управления действия и переменные</a></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2010-12-30T14:57:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43206#p43206</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Gui, DropDownList выбор из списка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43204#p43204" />
			<content type="html"><![CDATA[<p>Решил написать макрос (сборник) со списком,<br />суть следующая:<br />дроп меню с списком персонажей, при выборе определенного персонажа происходит&nbsp; замена кнопок под этого персонажа.<br /> Но столкнулся с проблемой, незнаю как разделить этих персонажей (тоесть для одного q::w а для другого уже q::t и компилятор пишет что q уже задействовано)<br />и еще не знаю как обратится к выбраному из списка, тоесть в списке например 1,2,3,4<br />как обратится например к 3 не задействовав 1,2,4?<br /> вот код, немогли бы вы исправить ошибки ?<br />одна точно есть в (Gui, Add, DropDownList, <strong>gChaos</strong> x6 y45 w200 h20 , Chaos Knight|Rogue)<br />но я не знаю что означает приставка &quot;v&quot; и &quot;g&quot; и как переходить к выбраному персу</p><div class="codebox"><pre><code>Gui, Add, Text, x6 y5 w200 h20 , title
Gui, Add, Text, x6 y25 w200 h20 , Выберите героя
Gui, Add, DropDownList, gChaos x6 y45 w200 h20 , Chaos Knight|Rogue
Gui, Show, x445 y286 h319 w220, 
return

Chaos:
Gui, Submit, NoHide
Gui, Add, Text,cred x6 y75 w200 h20 , Макрос на Chaos Knight
Gui, Add, Text, x6 y95 w200 h20 , Q - 1 скил
Gui, Add, Text, x6 y115 w200 h20 , W - 2 скил
Gui, Add, Text, x6 y135 w200 h20 , E - 4 скил
Gui, Add, Text, x6 y155 w200 h20 , Alt+Q - 1 ячейка (num7)
Gui, Add, Text, x6 y175 w200 h20 , Alt+W - 2 ячейка (num8)
Gui, Add, Text, x6 y195 w200 h20 , Alt+A - 3 ячейка (num4)
Gui, Add, Text, x6 y215 w200 h20 , Alt+S - 4 ячейка (num5)
Gui, Add, Text, x6 y235 w200 h20 , Макрос выключен по умолчанию
Gui, Add, Text, x6 y255 w200 h20 , p -включает\выключает макрос
w::e
q::c
e::t
!c:: Send {Numpad7}
!e:: Send {Numpad8}
!a:: Send {Numpad4}
!s:: Send {Numpad5}
p::suspend
Gui, Show 
Return

Rogue:
Gui, Submit, NoHide
Gui, Add, Text, x6 y75 w200 h20 , Макрос на  Rogue Knight
Gui, Add, Text, x6 y95 w200 h20 , Q - 1 скил
Gui, Add, Text, x6 y115 w200 h20 , W - 2 скил
Gui, Add, Text, x6 y135 w200 h20 , E - 4 скил
Gui, Add, Text, x6 y155 w200 h20 , Alt+Q - 1 ячейка (num7)
Gui, Add, Text, x6 y175 w200 h20 , Alt+W - 2 ячейка (num8)
Gui, Add, Text, x6 y195 w200 h20 , Alt+A - 3 ячейка (num4)
Gui, Add, Text, x6 y215 w200 h20 , Alt+S - 4 ячейка (num5)
Gui, Add, Text, x6 y235 w200 h20 , Макрос выключен по умолчанию
Gui, Add, Text, x6 y255 w200 h20 , p -включает\выключает макрос
e::r
q::t
!t:: Send {Numpad7}
!w:: Send {Numpad8}
!a:: Send {Numpad4}
!s:: Send {Numpad5}
p::suspend
Gui, Show 
Return
GuiClose:
ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[vinternete]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25439</uri>
			</author>
			<updated>2010-12-30T14:44:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43204#p43204</id>
		</entry>
</feed>
