<?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="http://forum.script-coding.com/extern.php?action=feed&amp;tid=17011&amp;type=atom" />
	<updated>2022-10-24T16:19:09Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=17011</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Код который бы переключал активный скрипт по нажатию кнопки]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=155385#p155385" />
			<content type="html"><![CDATA[<p>Добавьте к каждому #If дополнительное условие:<br /></p><div class="codebox"><pre><code>#If WinActive(&quot;My Window&quot;) &amp;&amp; counter = 1</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-10-24T16:19:09Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=155385#p155385</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Код который бы переключал активный скрипт по нажатию кнопки]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=155381#p155381" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Хотел еще спросить можно ли Ваш скрипт закрепить за одним приложением? Чтобы данный скрипт работал только в одном активном окне, приложении.<br />К сожалению команда:</p><div class="codebox"><pre><code>#IfWinActive,</code></pre></div><p> не работает.<br />Полагаю не работает из-за:</p><div class="codebox"><pre><code>#If</code></pre></div><p> в скрипте.</p>]]></content>
			<author>
				<name><![CDATA[SHOX]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39086</uri>
			</author>
			<updated>2022-10-24T00:57:49Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=155381#p155381</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Код который бы переключал активный скрипт по нажатию кнопки]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=155380#p155380" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Как и в прошлый раз работает шикарно. Благодарю на помощь!</p>]]></content>
			<author>
				<name><![CDATA[SHOX]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39086</uri>
			</author>
			<updated>2022-10-24T00:39:33Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=155380#p155380</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Код который бы переключал активный скрипт по нажатию кнопки]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=155379#p155379" />
			<content type="html"><![CDATA[<p>Попробуйте так:<br /></p><div class="codebox"><pre><code>counter := 1
1:: counter := mod(counter, 3) + 1

#If counter = 1
LButton::a

#If counter = 2
LButton::b

#If counter = 3
LButton::c

#If
Esc::ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-10-23T22:26:50Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=155379#p155379</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Код который бы переключал активный скрипт по нажатию кнопки]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=155376#p155376" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Хорошо. Я посчитал что Вы просто не доброжелательно придираетесь на счет точки, Правила прочитал, точку поставил.</p>]]></content>
			<author>
				<name><![CDATA[SHOX]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39086</uri>
			</author>
			<updated>2022-10-23T17:38:16Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=155376#p155376</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Код который бы переключал активный скрипт по нажатию кнопки]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=155375#p155375" />
			<content type="html"><![CDATA[<p>Если понятно, то почему бы не исправить? На форуме есть правила, они для всех одинаковые. Хотите получать здесь помощь — выполняйте их.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-10-23T17:26:04Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=155375#p155375</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Код который бы переключал активный скрипт по нажатию кнопки]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=155374#p155374" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Понятно. Всего Вам хорошего.</p>]]></content>
			<author>
				<name><![CDATA[SHOX]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39086</uri>
			</author>
			<updated>2022-10-23T17:23:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=155374#p155374</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Код который бы переключал активный скрипт по нажатию кнопки]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=155373#p155373" />
			<content type="html"><![CDATA[<p>Точку потеряли.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-10-23T16:50:15Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=155373#p155373</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Код который бы переключал активный скрипт по нажатию кнопки]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=155372#p155372" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Поочерёдно, по кругу. Что бы при каждом нажатии кнопки - активная горячая клавиша переключалась по кругу.</p>]]></content>
			<author>
				<name><![CDATA[SHOX]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39086</uri>
			</author>
			<updated>2022-10-23T16:19:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=155372#p155372</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Код который бы переключал активный скрипт по нажатию кнопки]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=155371#p155371" />
			<content type="html"><![CDATA[<p>А по какому алгоритму?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-10-23T15:43:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=155371#p155371</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Код который бы переключал активный скрипт по нажатию кнопки]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=155370#p155370" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Да, извините. Я имею в виду именно горячие клавиши.<br />на подобии <br /></p><div class="codebox"><pre><code>LButton:: Send, {RAlt down}
LButton up:: Send, {RAlt up}</code></pre></div><p>Имею потребность в аналогичном вашем коде но только что бы он переключался между тремя горячими клавишами.</p>]]></content>
			<author>
				<name><![CDATA[SHOX]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39086</uri>
			</author>
			<updated>2022-10-23T14:48:54Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=155370#p155370</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Код который бы переключал активный скрипт по нажатию кнопки]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=155369#p155369" />
			<content type="html"><![CDATA[<p>Не очень понял, что за скрипты. Там просто горячие клавиши переключаются.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-10-23T14:25:04Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=155369#p155369</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Код который бы переключал активный скрипт по нажатию кнопки]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=155366#p155366" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Здравствуйте.<br />Подскажите пожалуйста можно ли как-то ваш скрипт модернизировать и сделать так что бы он переключал с одной кнопки 3 скрипта в место двух?</p>]]></content>
			<author>
				<name><![CDATA[SHOX]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39086</uri>
			</author>
			<updated>2022-10-23T13:55:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=155366#p155366</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Код который бы переключал активный скрипт по нажатию кнопки]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=152536#p152536" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong>, <strong>teadrinker</strong> <br />Спасибо вам большое! Очень выручили.</p>]]></content>
			<author>
				<name><![CDATA[SHOX]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39086</uri>
			</author>
			<updated>2022-03-08T01:17:53Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=152536#p152536</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Код который бы переключал активный скрипт по нажатию кнопки]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=152535#p152535" />
			<content type="html"><![CDATA[<p>В каком смысле сокращённый? Тут нечего сокращать.<br /></p><div class="codebox"><pre><code>toggle := false
1:: toggle := !toggle

#If !toggle
LButton:: Send, {F7 down}
LButton up:: Send, {F7 up}

#If toggle
LButton:: Send, {RAlt down}
LButton up:: Send, {RAlt up}</code></pre></div><p>Отличие здесь в том, что сразу видно, что код делает.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-03-07T19:53:46Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=152535#p152535</id>
		</entry>
</feed>
