<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: tab1/tab2]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15650&amp;type=atom" />
	<updated>2020-09-07T19:50:56Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15650</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142019#p142019" />
			<content type="html"><![CDATA[<p><strong>ustarta</strong></p><p>Вроде всё просто:</p><div class="codebox"><pre><code>F6::
Gui, Add, Tab, vTAB_BUTTON, Тест1|Тест2	; Главное указать переменную для таб-меню.
Gui, Tab, Тест1
Gui, Add, Button,  1
Gui, Add, Button,  2

Gui, Tab, Тест2
Gui, Add, Button,  3
Gui, Add, Button,  4
Gui, Show
Return


F1::
GuiControl, Choose, TAB_BUTTON, 1	; Меняет пункт в Табе.
Return

F2::
GuiControl, Choose, TAB_BUTTON, 2	; Меняет пункт в Табе.
Return

; Противоположное меню.
F4::
Gui, Submit, NoHide ; Получить переменные от Gui.
T := 1
If TAB_BUTTON = Тест1
 T := 2
GuiControl, Choose, TAB_BUTTON, % T
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2020-09-07T19:50:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142019#p142019</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142018#p142018" />
			<content type="html"><![CDATA[<p>Справка имеется, рабочий пример был дан. Остаётся включить голову.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2020-09-07T19:18:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142018#p142018</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142017#p142017" />
			<content type="html"><![CDATA[<p>На F2 переключается на вкладку тест 2, но но не удается переключить на тест1 .</p><div class="codebox"><pre><code>F1::
GuiControl, Choose, MyTab, Тест1
F2::
GuiControl, Choose, MyTab, Тест2
Return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ustarta]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40980</uri>
			</author>
			<updated>2020-09-07T17:55:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142017#p142017</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142016#p142016" />
			<content type="html"><![CDATA[<p>Разобрался что меняются вкладки по sleep .&nbsp; но как все это перенести на кнопку?</p>]]></content>
			<author>
				<name><![CDATA[ustarta]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40980</uri>
			</author>
			<updated>2020-09-07T17:47:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142016#p142016</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142015#p142015" />
			<content type="html"><![CDATA[<p>Спасибо. Можно ли добавить комментарии, как должно работать, или ссылку для примера работающего скрипта. </p><p>Перерыл инструкции по GuiControl, Choose и не понимаю как это должно работать.</p>]]></content>
			<author>
				<name><![CDATA[ustarta]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40980</uri>
			</author>
			<updated>2020-09-07T17:39:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142015#p142015</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142014#p142014" />
			<content type="html"><![CDATA[<p>Разберите этот пример.<br /></p><div class="codebox"><pre><code>Gui, Add, Tab, vMyTab Choose2, Тест1|Тест2
Gui, Tab, Тест1
Gui, Add, Button,  1
Gui, Add, Button,  2
Gui, Tab, Тест2
Gui, Add, Button,  3
Gui, Add, Button,  4
Gui, Show

Sleep, 2000
GuiControl, Choose, MyTab, 1
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2020-09-07T16:50:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142014#p142014</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142013#p142013" />
			<content type="html"><![CDATA[<p><strong>ustarta</strong>, используйте GuiControl, Choose.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-09-07T16:32:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142013#p142013</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142012#p142012" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong></p><p>Спасибо, уже понятнее. Но, как теперь,&nbsp; сделать так, что бы на f1 открывалось вкладка тест1, а на f2 вкладка тест2</p><p>Я пока это вижу как создание нового меню с активной вкладкой 2</p><p>На пример так, но это малость мудренно, если таких вкладок будет много</p><div class="codebox"><pre><code>


Gui, Add, Tab,  Choose1, Тест1|Тест2
Gui, Tab, Тест1
Gui, Add, Button,  1
Gui, Add, Button,  2
Gui, Tab, Тест2
Gui, Add, Button,  3
Gui, Add, Button,  4





Gui, 2:Add, Tab,  Choose2, Тест1|Тест2
Gui, 2:Tab, Тест1
Gui, 2:Add, Button,  1
Gui, 2:Add, Button,  2
Gui, 2:Tab, Тест2
Gui, 2:Add, Button,  3
Gui, 2:Add, Button,  4


F1::Gui, Show
F2::Gui, 2:Show
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ustarta]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40980</uri>
			</author>
			<updated>2020-09-07T16:17:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142012#p142012</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142011#p142011" />
			<content type="html"><![CDATA[<p>Вот так:</p><div class="codebox"><pre><code>
Gui, Add, Tab,  Choose2, Тест1|Тест2
Gui, Tab, Тест1
Gui, Add, Button,  1
Gui, Add, Button,  2
Gui, Tab, Тест2
Gui, Add, Button,  3
Gui, Add, Button,  4

F1::Gui, Show</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2020-09-07T16:06:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142011#p142011</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142010#p142010" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong></p><p>Нажимаем F1 открывается окно с вкладками Тест1 и тест2 по проведенному коду.&nbsp; По умолчанию всегда открыто тест1. Как сделать так что бы при нажатии F1 окно открывалась с активной вкладкой тест 2&nbsp; ?</p>]]></content>
			<author>
				<name><![CDATA[ustarta]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40980</uri>
			</author>
			<updated>2020-09-07T15:57:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142010#p142010</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142009#p142009" />
			<content type="html"><![CDATA[<p>Последнее сообщение только больше&nbsp; запутало.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2020-09-07T15:47:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142009#p142009</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142008#p142008" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong></p><p>Если окно активно, то переключить вкладку, если окно не открыто, то открывает окно сразу на необходимой вкладке.</p>]]></content>
			<author>
				<name><![CDATA[ustarta]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40980</uri>
			</author>
			<updated>2020-09-07T14:42:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142008#p142008</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142007#p142007" />
			<content type="html"><![CDATA[<p>В каком смысле &quot;запускается вкладка&quot;? Может &quot;происходит переключение на вкладку №...&quot;?</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2020-09-07T14:35:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142007#p142007</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: tab1/tab2]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142006#p142006" />
			<content type="html"><![CDATA[<p>Здравствуйте. Возник такой вопрос<br />Есть код</p><div class="codebox"><pre><code>
Gui, Add, Tab,  , Тест1|Тест2
Gui, Tab, Тест1
Gui, Add, Button,  1
Gui, Add, Button,  2
Gui, Tab, Тест2
Gui, Add, Button,  3
Gui, Add, Button,  4

F1::Gui, Show
</code></pre></div><p>При нажатии f1 открывается окно всегда с вкладки Тест1<br />А есть возможность, присвоить каждой вкладке свою кнопку, к примеру на f1 запускается вкладка Тест 1 , а при нажатии F2 , становиться активная вкладка тест2 ?</p>]]></content>
			<author>
				<name><![CDATA[ustarta]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40980</uri>
			</author>
			<updated>2020-09-07T14:20:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142006#p142006</id>
		</entry>
</feed>
