<?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=5333&amp;type=atom" />
	<updated>2011-01-01T19:10:19Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5333</id>
		<entry>
			<title type="html"><![CDATA[AHK: Настройка - Анимация окон при свёртывании и развёртывании]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43257#p43257" />
			<content type="html"><![CDATA[<p>Скрипт был написан в целях самообразования, но возможно кому-то будет полезен, &quot;переключатель анимации окон&quot;:&nbsp; <br />(настройка Windows: Панель управления&gt;Свойсва ситемы&gt;Дополнительно&gt;Быстродействие&gt;Параметры&gt;Анимация окон при свёртывании и развёртывании)</p><p><a href="http://onemove.ru/32862/">Animation[On-Off].zip</a><br />запускаем программу, она узнаёт в каком состоянии настройка анимации и переключает её на обратную.</p><p>исходники:</p><p>AutoHotkey<br /></p><div class="codebox"><pre><code>VarSetCapacity(AnimationInfo, 8,0) 
cbSize := VarSetCapacity(AnimationInfo)
NumPut(cbSize, AnimationInfo, 0, &quot;UInt&quot;)
DllCall(&quot;SystemParametersInfo&quot;, UInt, 0x48, UInt, cbSize, &quot;UInt&quot;, &amp;AnimationInfo, UInt, 1 )
set := NumGet(AnimationInfo,4)
NumPut(!set, AnimationInfo, 4, &quot;Int&quot;)
DllCall(&quot;SystemParametersInfo&quot;, UInt, 0x49, UInt, cbSize, &quot;UInt&quot;, &amp;AnimationInfo, UInt, 1 )</code></pre></div><p>PureBasic<br /></p><div class="codebox"><pre><code>AnimationInfo.ANIMATIONINFO
AnimationInfo\cbSize=SizeOf(AnimationInfo)
SystemParametersInfo_(#SPI_GETANIMATION,AnimationInfo\cbSize,@AnimationInfo,1)
AnimationInfo\iMinAnimate=(Not AnimationInfo\iMinAnimate)
SystemParametersInfo_(#SPI_SETANIMATION,AnimationInfo\cbSize,@AnimationInfo,1)</code></pre></div><p>материалы используемые в процессе написания:<br /><a href="http://www.autohotkey.com/forum/topic13001-285.html">AutoHotkey forum</a><br />search: SPI_SETANIMATION<br /><a href="http://msdn.microsoft.com/en-us/library/ms724947(VS.85).aspx">mdsn</a></p>]]></content>
			<author>
				<name><![CDATA[kirtech]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26525</uri>
			</author>
			<updated>2011-01-01T19:10:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43257#p43257</id>
		</entry>
</feed>
