<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: tab1/tab2]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=15650</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15650&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: tab1/tab2».]]></description>
		<lastBuildDate>Mon, 07 Sep 2020 19:50:56 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142019#p142019</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (__Михаил__)]]></author>
			<pubDate>Mon, 07 Sep 2020 19:50:56 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142019#p142019</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142018#p142018</link>
			<description><![CDATA[<p>Справка имеется, рабочий пример был дан. Остаётся включить голову.</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Mon, 07 Sep 2020 19:18:44 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142018#p142018</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142017#p142017</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (ustarta)]]></author>
			<pubDate>Mon, 07 Sep 2020 17:55:30 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142017#p142017</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142016#p142016</link>
			<description><![CDATA[<p>Разобрался что меняются вкладки по sleep .&nbsp; но как все это перенести на кнопку?</p>]]></description>
			<author><![CDATA[null@example.com (ustarta)]]></author>
			<pubDate>Mon, 07 Sep 2020 17:47:36 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142016#p142016</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142015#p142015</link>
			<description><![CDATA[<p>Спасибо. Можно ли добавить комментарии, как должно работать, или ссылку для примера работающего скрипта. </p><p>Перерыл инструкции по GuiControl, Choose и не понимаю как это должно работать.</p>]]></description>
			<author><![CDATA[null@example.com (ustarta)]]></author>
			<pubDate>Mon, 07 Sep 2020 17:39:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142015#p142015</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142014#p142014</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Mon, 07 Sep 2020 16:50:07 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142014#p142014</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142013#p142013</link>
			<description><![CDATA[<p><strong>ustarta</strong>, используйте GuiControl, Choose.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 07 Sep 2020 16:32:43 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142013#p142013</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142012#p142012</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (ustarta)]]></author>
			<pubDate>Mon, 07 Sep 2020 16:17:16 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142012#p142012</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142011#p142011</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Mon, 07 Sep 2020 16:06:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142011#p142011</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142010#p142010</link>
			<description><![CDATA[<p><strong>ypppu</strong></p><p>Нажимаем F1 открывается окно с вкладками Тест1 и тест2 по проведенному коду.&nbsp; По умолчанию всегда открыто тест1. Как сделать так что бы при нажатии F1 окно открывалась с активной вкладкой тест 2&nbsp; ?</p>]]></description>
			<author><![CDATA[null@example.com (ustarta)]]></author>
			<pubDate>Mon, 07 Sep 2020 15:57:53 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142010#p142010</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142009#p142009</link>
			<description><![CDATA[<p>Последнее сообщение только больше&nbsp; запутало.</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Mon, 07 Sep 2020 15:47:33 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142009#p142009</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142008#p142008</link>
			<description><![CDATA[<p><strong>ypppu</strong></p><p>Если окно активно, то переключить вкладку, если окно не открыто, то открывает окно сразу на необходимой вкладке.</p>]]></description>
			<author><![CDATA[null@example.com (ustarta)]]></author>
			<pubDate>Mon, 07 Sep 2020 14:42:00 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142008#p142008</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: tab1/tab2]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142007#p142007</link>
			<description><![CDATA[<p>В каком смысле &quot;запускается вкладка&quot;? Может &quot;происходит переключение на вкладку №...&quot;?</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Mon, 07 Sep 2020 14:35:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142007#p142007</guid>
		</item>
		<item>
			<title><![CDATA[AHK: tab1/tab2]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142006#p142006</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (ustarta)]]></author>
			<pubDate>Mon, 07 Sep 2020 14:20:25 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142006#p142006</guid>
		</item>
	</channel>
</rss>
