<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Как включать\отключать Aero в теме Windows 7х64?]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=7887&amp;type=atom" />
	<updated>2012-12-22T14:13:44Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=7887</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как включать\отключать Aero в теме Windows 7х64?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67351#p67351" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Irbis пишет:</cite><blockquote><p><strong>Indomito</strong>, а чем твой пример лучше, чем скрипт из поста №2?</p></blockquote></div><p>&nbsp; проглядел, извиняюсь.<br /></p><div class="quotebox"><blockquote><p>Вопрос не в том, как переключить, а в том, чтобы это состояние осталось после завершения скрипта.</p></blockquote></div><p> не понял, ну переключили и оно останется... правда я не проверял что будет с Aero после завершения скрипта, т.е. у меня остаётся то что я сделал, но если написать &quot;косо&quot; - не в курсе <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2012-12-22T14:13:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67351#p67351</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как включать\отключать Aero в теме Windows 7х64?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67350#p67350" />
			<content type="html"><![CDATA[<p><strong>Indomito</strong>, а чем твой пример лучше, чем скрипт из поста №2?<br />Вопрос не в том, как переключить, а в том, чтобы это состояние осталось после завершения скрипта.</p>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2012-12-22T13:46:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67350#p67350</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как включать\отключать Aero в теме Windows 7х64?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67332#p67332" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong> вот готовый фрагмент скрипта, осталось только определить переменную <strong>toggle</strong> </p><div class="codebox"><pre><code>ToggleAero:
if toggle := !toggle
   DllCall(&quot;dwmapi\DwmEnableComposition&quot;, &quot;uint&quot;, 0) ; DllCall For Windows Decomposition ; On
else
   DllCall(&quot;dwmapi\DwmEnableComposition&quot;, &quot;uint&quot;, 1) ; DllCall For Windows Decomposition ; Off
return</code></pre></div><p> переключение не нужно, оно реализовано в самом I<strong>F</strong>.</p><p>P.S. Если требуется самому переключать то поправь конструкцию <strong>if toggle := !toggle</strong></p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2012-12-22T07:13:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67332#p67332</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как включать\отключать Aero в теме Windows 7х64?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67244#p67244" />
			<content type="html"><![CDATA[<p>Если у тебя есть перманентно работающий скрипт с полезными хоткеями (в автозагрузке), просто добавь туда хоткей на вкл/выкл Aero.</p>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2012-12-20T15:53:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67244#p67244</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как включать\отключать Aero в теме Windows 7х64?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67241#p67241" />
			<content type="html"><![CDATA[<p>Программно, скорее всего, никак, ибо:<br /></p><div class="quotebox"><cite>MSDN пишет:</cite><blockquote><p><a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa969510%28v=vs.85%29.aspx">DWM composition</a> will be automatically enabled when all processes that have disabled composition have called DwmEnableComposition to enable it or have been terminated.</p></blockquote></div><p>Так что только в настройках.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2012-12-20T15:00:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67241#p67241</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как включать\отключать Aero в теме Windows 7х64?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67240#p67240" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Irbis пишет:</cite><blockquote><p>ExitApp или Return - без разницы, упрощенный стиль действует, пока работает скрипт. Просто в случае, если в нем есть горячие клавиши, Return не вызывает завершение работы.</p></blockquote></div><p>Ну это очевидно же. <br />Вопрос как включить нужный режим и выйти?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2012-12-20T14:31:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67240#p67240</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как включать\отключать Aero в теме Windows 7х64?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67233#p67233" />
			<content type="html"><![CDATA[<p>ExitApp или Return - без разницы, упрощенный стиль действует, пока работает скрипт. Просто в случае, если в нем есть горячие клавиши, Return не вызывает завершение работы.</p>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2012-12-20T13:36:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67233#p67233</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как включать\отключать Aero в теме Windows 7х64?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67217#p67217" />
			<content type="html"><![CDATA[<p>Спасибо! Так работает:<br /></p><div class="codebox"><pre><code>1::
DllCall(&quot;Dwmapi\DwmEnableComposition&quot;, &quot;UInt&quot;, 1)
Return
2::
DllCall(&quot;Dwmapi\DwmEnableComposition&quot;, &quot;UInt&quot;, 0)
Return</code></pre></div><div class="quotebox"><blockquote><p>Если имеется в виду «отключать-включать опцию настроек»</p></blockquote></div><p>Не понял как это. <br />Наверно:<br />А вот так выключает и включает снова:<br /></p><div class="codebox"><pre><code>DllCall(&quot;Dwmapi\DwmEnableComposition&quot;, &quot;UInt&quot;, 0)
ExitApp</code></pre></div><p>Если ExitApp заменить на Return - то нормально.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2012-12-20T09:34:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67217#p67217</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как включать\отключать Aero в теме Windows 7х64?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67198#p67198" />
			<content type="html"><![CDATA[<p>Включать: DllCall(&quot;Dwmapi\DwmEnableComposition&quot;, &quot;UInt&quot;, 1)<br />Отключать: DllCall(&quot;Dwmapi\DwmEnableComposition&quot;, &quot;UInt&quot;, 0)<br />Переключать:<br /></p><div class="codebox"><pre><code>ToggleComposition()
{
    DllCall(&quot;Dwmapi\DwmIsCompositionEnabled&quot;, &quot;UInt*&quot;, isEnabled)
    DllCall(&quot;Dwmapi\DwmEnableComposition&quot;, &quot;UInt&quot;, !isEnabled)
}</code></pre></div><p>Если выполняется программа, которая произвела вызов <strong>DwmEnableComposition</strong> с аргументом «0»,<br />то вызов в иной программе DwmEnableComposition с аргументом «1» не включит аэро.<br /></p><div class="quotebox"><blockquote><p>Disabling DWM composition disables it for the entire desktop. DWM composition will be automatically enabled when all processes that have disabled composition have called DwmEnableComposition to enable it or have been terminated. The WM_DWMCOMPOSITIONCHANGED notification is sent whenever DWM composition is enabled or disabled.</p></blockquote></div><p>Если имеется в виду «отключать-включать опцию настроек», то это нужно конкретизировать в вопросе темы.</p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-12-19T22:26:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67198#p67198</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Как включать\отключать Aero в теме Windows 7х64?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67195#p67195" />
			<content type="html"><![CDATA[<p>Поиск не помог. <br />Подскажите, если кто знает: как включать\отключать Aero в теме Windows 7х64?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2012-12-19T22:02:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67195#p67195</id>
		</entry>
</feed>
