<?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=10154&amp;type=atom" />
	<updated>2014-11-18T06:20:01Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10154</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Блокировака горячих клавиш]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=88437#p88437" />
			<content type="html"><![CDATA[<p>Упс, сорри. Всё из-за моей невнимательности, забыл тильду, хотя тильда и была в основном коде который я использую, но тут не досмотрел. Всё заработало, спасибо, ещё раз извиняюсь.</p>]]></content>
			<author>
				<name><![CDATA[dredj]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32289</uri>
			</author>
			<updated>2014-11-18T06:20:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=88437#p88437</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Блокировака горячих клавиш]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=88436#p88436" />
			<content type="html"><![CDATA[<p>А в коде из <a href="http://forum.script-coding.com/viewtopic.php?pid=88431#p88431">поста #7</a> работает?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-11-17T22:51:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=88436#p88436</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Блокировака горячих клавиш]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=88435#p88435" />
			<content type="html"><![CDATA[<p>Зажал XButton2 и покрутил колёсико в браузере например или множественный выбор элементов в ФМ.</p>]]></content>
			<author>
				<name><![CDATA[dredj]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32289</uri>
			</author>
			<updated>2014-11-17T22:31:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=88435#p88435</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Блокировака горячих клавиш]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=88434#p88434" />
			<content type="html"><![CDATA[<p>А как вы определили, что не работает?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-11-17T22:07:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=88434#p88434</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Блокировака горячих клавиш]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=88433#p88433" />
			<content type="html"><![CDATA[<p>Всё также не работает</p><div class="codebox"><pre><code>XButton2::Ctrl</code></pre></div>]]></content>
			<author>
				<name><![CDATA[dredj]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32289</uri>
			</author>
			<updated>2014-11-17T21:44:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=88433#p88433</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Блокировака горячих клавиш]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=88432#p88432" />
			<content type="html"><![CDATA[<p>Выполняется первое условие #IfWinNotActive ahk_class Notepad. Правильно будет:<br /></p><div class="codebox"><pre><code>#If !(WinActive(&quot;ahk_class Notepad&quot;) || IsShell_TrayWnd())
XButton1::Space
XButton2::Ctrl
XButton1 &amp; WheelUp::SendInput, {Home}
XButton1 &amp; WheelDown::SendInput, {End}
XButton2 &amp; MButton::SendInput, !{9}
XButton2 &amp; RButton UP::SendInput, !{MButton}

#If IsShell_TrayWnd()

XButton1::Media_Play_Pause
XButton2::Media_Next

WheelDown::SoundSet, -5 
WheelUp::SoundSet, +5 

#If

IsShell_TrayWnd()   {
    Global ClassNN
    MouseGetPos, , , WinID, ClassNN      
    WinGetClass, WinClass, ahk_id %WinID%
    Return WinClass = &quot;Shell_TrayWnd&quot; ? 1 : 0
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-11-17T20:59:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=88432#p88432</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Блокировака горячих клавиш]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=88431#p88431" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, Есть такой скрипт</p><div class="codebox"><pre><code>  
XButton1::Space
XButton2::Ctrl
XButton1 &amp; WheelUp::SendInput, {Home}
XButton1 &amp; WheelDown::SendInput, {End}
XButton2 &amp; MButton::SendInput, !{9}
XButton2 &amp; RButton UP::SendInput, !{MButton}


#If IsShell_TrayWnd()

XButton1::Media_Play_Pause
XButton2::Media_Next

WheelDown::SoundSet, -5 
WheelUp::SoundSet, +5 

#If

IsShell_TrayWnd()   {
    Global ClassNN
    MouseGetPos, , , WinID, ClassNN 
    WinGetClass, WinClass, ahk_id %WinID%
    Return WinClass = &quot;Shell_TrayWnd&quot; ? 1 : 0
}</code></pre></div><p> если в начале поставить условия #IfWinNotActive ahk_class Notepad то перестают работать следующие хоткеи</p><div class="codebox"><pre><code>XButton2::Ctrl</code></pre></div><div class="codebox"><pre><code>XButton1::Media_Play_Pause
XButton2::Media_Next</code></pre></div><p> Где ошибка?</p>]]></content>
			<author>
				<name><![CDATA[dredj]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32289</uri>
			</author>
			<updated>2014-11-17T20:48:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=88431#p88431</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Блокировака горячих клавиш]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=88422#p88422" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>dredj пишет:</cite><blockquote><p>с #IfWinNotActive тоже проблемы, перестают работать вообще некоторые хоткеи.</p></blockquote></div><p>Их нужно просто вывести из под #IfWinNotActive, например так:<br /></p><div class="codebox"><pre><code>#IfWinNotActive ahk_class Notepad
F10:: MsgBox, Эта горячая клавиша работает только когда не активен блокнот

#If
F11:: MsgBox, Эта горячая клавиша будет работать всегда</code></pre></div><p>Или так:<br /></p><div class="codebox"><pre><code>F11:: MsgBox, Эта горячая клавиша будет работать всегда

#IfWinNotActive ahk_class Notepad
F10:: MsgBox, Эта горячая клавиша работает только когда не активен блокнот</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-11-17T15:48:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=88422#p88422</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Блокировака горячих клавиш]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=88419#p88419" />
			<content type="html"><![CDATA[<p><strong>test2test</strong>, с #IfWinNotActive тоже проблемы, перестают работать вообще некоторые хоткеи. Решил проблему повесив суспенд на хоткей.<br />Как вывести tooltip при переключения суспенда, типа &quot;Suspend on&quot; и &quot;Suspend off&quot;?</p>]]></content>
			<author>
				<name><![CDATA[dredj]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32289</uri>
			</author>
			<updated>2014-11-17T14:30:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=88419#p88419</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Блокировака горячих клавиш]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=88360#p88360" />
			<content type="html"><![CDATA[<p>Первое было к тому что ifwinexist немного не то, второе к оформлению.</p><p>А так-то проще засунуть свои хоткеи внутрь #IfWinNotActive</p>]]></content>
			<author>
				<name><![CDATA[test2test]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32676</uri>
			</author>
			<updated>2014-11-14T14:06:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=88360#p88360</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Блокировака горячих клавиш]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=88359#p88359" />
			<content type="html"><![CDATA[<p><strong>test2test</strong>, тоже самое.</p>]]></content>
			<author>
				<name><![CDATA[dredj]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32289</uri>
			</author>
			<updated>2014-11-14T14:00:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=88359#p88359</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Блокировака горячих клавиш]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=88358#p88358" />
			<content type="html"><![CDATA[<p>#IfWinActive ahk_class Valve001<br />bla-bla<br />#IfWinActive</p>]]></content>
			<author>
				<name><![CDATA[test2test]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32676</uri>
			</author>
			<updated>2014-11-14T13:49:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=88358#p88358</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Блокировака горячих клавиш]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=88357#p88357" />
			<content type="html"><![CDATA[<p>Хотел заморозить все хоткеи, когда активен определённое окно, вот так </p><div class="codebox"><pre><code>#IfWinActive ahk_class Valve001
Suspend
Return
</code></pre></div><p> не получается, почему-то всегда suspend.</p>]]></content>
			<author>
				<name><![CDATA[dredj]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32289</uri>
			</author>
			<updated>2014-11-14T13:47:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=88357#p88357</id>
		</entry>
</feed>
