<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Распознание сгенерированной кнопки]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16774&amp;type=atom" />
	<updated>2021-12-01T15:25:28Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16774</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Распознание сгенерированной кнопки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150878#p150878" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>yakmuve пишет:</cite><blockquote><p>Итак, мне надо распознать какая из кнопок была нажата</p></blockquote></div><div class="codebox"><pre><code>Gui 1:Add, Button, w50 h50 gButtonHotkey, 1111
Gui 1:Add, Button, w50 h50 gButtonHotkey, 2222
Gui 1:Show
Return


ButtonHotkey:
ToolTip %A_GuiControl%
Return</code></pre></div><div class="codebox"><pre><code>Gui 1:Add, Button, w50 h50 gButtonHotkey vKnopka1, 1111
Gui 1:Add, Button, w50 h50 gButtonHotkey vKnopka2, 2222
Gui 1:Show
Return


ButtonHotkey:
ToolTip %A_GuiControl%
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2021-12-01T15:25:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150878#p150878</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Распознание сгенерированной кнопки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150877#p150877" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>__Михаил__ пишет:</cite><blockquote><p>Когда выкладываете код на форум, убедитесь чтобы он как минимум запустился. Метка &#039;ButtonHotkey&#039; не указана.</p></blockquote></div><p> А, я забыл прикрепить на форум данный фрагмент, извиняюсь (у меня в коде он есть)</p>]]></content>
			<author>
				<name><![CDATA[yakmuve]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42183</uri>
			</author>
			<updated>2021-12-01T15:18:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150877#p150877</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Распознание сгенерированной кнопки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150875#p150875" />
			<content type="html"><![CDATA[<p>Когда выкладываете код на форум, убедитесь чтобы он как минимум запустился. Метка &#039;ButtonHotkey&#039; не указана.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-12-01T15:10:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150875#p150875</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Распознание сгенерированной кнопки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150874#p150874" />
			<content type="html"><![CDATA[<p>Здравствуйте, у меня есть код, который генерирует кнопки в интерфейсе. <br /></p><div class="codebox"><pre><code>
	Gui 1:Add, Tab3, x0 y0 w825 h384, 1| 2| 3| 4| 5| 6| 7| 8| 9| 10

	ProsLoc = 1
	BoxVar = 10

	While (ProsLoc != 11) {

		Gui 1:Tab, %ProsLoc%
		Gui 1:Font, s9 Bold, Segoe UI

		HotBoxVar = 1
		HotkeyY = 64

		while (HotBoxVar != 11){

		Gui 1:Add, Button, x616 y%HotkeyY% w196 h21 gButtonHotkey, &amp;Настроить(id=%ProsLoc%t4t%HotBoxVar%)

		HotBoxVar += 1
		HotkeyY += 32
		BoxVar += 1

			}

		ProsLoc += 1

	}

	Gui 1:Tab

	Gui 1:Color, White
	Gui 1:Show, Center w820 h620, UnbeBinder v%version%
	Return

	ButtonHotkey:
	return</code></pre></div><p>И у меня есть некие &quot;id&quot;(переменные), которые к ним прикрепляются. Итак, мне надо распознать какая из кнопок была нажата (к каждой кнопке будет прикреплено отдельное окно).</p>]]></content>
			<author>
				<name><![CDATA[yakmuve]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42183</uri>
			</author>
			<updated>2021-12-01T15:03:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150874#p150874</id>
		</entry>
</feed>
