<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK:Выполнение разных действий в зависимости от активных окон]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=10518</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10518&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK:Выполнение разных действий в зависимости от активных окон».]]></description>
		<lastBuildDate>Tue, 24 Mar 2015 12:04:37 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK:Выполнение разных действий в зависимости от активных окон]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=92710#p92710</link>
			<description><![CDATA[<p>Почитай в справке про KeyWait и сам найдешь решение.</p>]]></description>
			<author><![CDATA[null@example.com (Alectric)]]></author>
			<pubDate>Tue, 24 Mar 2015 12:04:37 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=92710#p92710</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Выполнение разных действий в зависимости от активных окон]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=92708#p92708</link>
			<description><![CDATA[<p>Я смотрел. Мне подходит код, который я выше написал. Но куда его вставить в предложенный вами?<br />Просто в конце написать:<br /></p><div class="codebox"><pre><code>  
RButton::
KeyWait, % A_ThisHotkey
  if (A_TimeSinceThisHotkey &gt;= 2000)
     Shutdown, 12
  else
     Send {RButton}</code></pre></div><p>Так будет работать?</p>]]></description>
			<author><![CDATA[null@example.com (Anger666)]]></author>
			<pubDate>Tue, 24 Mar 2015 12:02:12 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=92708#p92708</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Выполнение разных действий в зависимости от активных окон]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=92705#p92705</link>
			<description><![CDATA[<p>Посмотрите в этой <a href="http://forum.script-coding.com/viewtopic.php?id=1205">теме</a>, под 4ым пунктом.</p>]]></description>
			<author><![CDATA[null@example.com (yalanne)]]></author>
			<pubDate>Tue, 24 Mar 2015 11:06:08 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=92705#p92705</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Выполнение разных действий в зависимости от активных окон]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=92701#p92701</link>
			<description><![CDATA[<p>Как обработать этот участок когда?</p><div class="codebox"><pre><code>  KeyWait, % A_ThisHotkey
  if (A_TimeSinceThisHotkey &gt;= 2000)
     Shutdown, 12
  else
     Send {RButton}</code></pre></div><p>Мне нужно отследить, если ПКМ нажата больше 2 сек то выключать комп.</p>]]></description>
			<author><![CDATA[null@example.com (Anger666)]]></author>
			<pubDate>Tue, 24 Mar 2015 07:28:20 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=92701#p92701</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Выполнение разных действий в зависимости от активных окон]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=92695#p92695</link>
			<description><![CDATA[<div class="codebox"><pre><code>#ifwinactive ahk_class ahk_class XBMC
RButton::Send {Backspace} ; на пульте кнопка &quot;стрелочка назад&quot; - бекспейс
LButton::Send {Enter} ; на пульте кнопка &quot;ОК&quot; - энтер
Volume_Mute::Send {F4}
#ifwinactive

#ifwinactive TotalMedia
RButton::Send {Enter} ; на пульте кнопка &quot;ОК&quot; - энтер
Volume_Mute::Send {F4}
LWin::Send {RButton}
#ifwinactive

#ifwinactive ahk_class PotPlayer
Volume_Mute::Send {F4}
#ifwinactive
</code></pre></div><p>Вот так подойдёт?</p>]]></description>
			<author><![CDATA[null@example.com (yalanne)]]></author>
			<pubDate>Mon, 23 Mar 2015 23:49:29 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=92695#p92695</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Выполнение разных действий в зависимости от активных окон]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=92694#p92694</link>
			<description><![CDATA[<p><span style="color: green"><strong>Anger666</strong>, ознакомьтесь с <a href="http://forum.script-coding.com/viewtopic.php?id=6148">этой</a> темой, отредактируйте заголовок.</span></p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 23 Mar 2015 19:16:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=92694#p92694</guid>
		</item>
		<item>
			<title><![CDATA[AHK:Выполнение разных действий в зависимости от активных окон]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=92693#p92693</link>
			<description><![CDATA[<p>Подскажите,пожалуйста, как правильно переписать этот скрипт?</p><div class="codebox"><pre><code>RButton::
if WinActive ahk_class XBMC
  Send {Backspace} ; на пульте кнопка &quot;стрелочка назад&quot; - бекспейс
else if WinActive TotalMedia
  Send {Enter} ; на пульте кнопка &quot;ОК&quot; - энтер
else
  KeyWait, % A_ThisHotkey
  if (A_TimeSinceThisHotkey &gt;= 2000)
     Shutdown, 12
  else
     Send {RButton}
Return

LButton::
if WinActive ahk_class XBMC
  Send {Enter} ; на пульте кнопка &quot;ОК&quot; - энтер
else
  Send {LButton}
Return

Volume_Mute::
if WinActive ahk_class XBMC or WinActive TotalMedia or WinActive ahk_class PotPlayer
  Send {!F4} ; на пульте кнопка &quot;выключить кромкость(нижняя)&quot; - выход
else
  Send {Volume_Mute}
Return

LWin::
if WinActive ahk_class XBMC
  Send {VKB4} ; на пльте кнопка &quot;меню&quot; - контекстное меню
else if WinActive TotalMedia
  Send {RButton} ; на пльте кнопка &quot;меню&quot; - контекстное меню
else
  Send {LWin}
Return

Volume_Up::
if WinActive ahk_class XBMC
  Send {z} ; на пульте кнопка &quot;увеличить громкость&quot; - добавить канал в избранное или изменить кроп
else if WinActive ahk_class PotPlayer
  Send {!a} ; на пульте кнопка &quot;увеличить громкость&quot; - переключить аудиодорожку
else
  Send {Volume_Up}
Return

Volume_Down::
if WinActive ahk_class XBMC
  Send {y} ; на пульте кнопка &quot;уменьшить громкость&quot; - удалить канал из избранного
else if WinActive ahk_class PotPlayer
  Send {!h} ; на пульте кнопка &quot;уменьшить громкость&quot; - вкл/выкл субтитры
else
  Send {Volume_Down}
Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Anger666)]]></author>
			<pubDate>Mon, 23 Mar 2015 19:11:35 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=92693#p92693</guid>
		</item>
	</channel>
</rss>
