<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Изменить размер панели задач win7]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=11903</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11903&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Изменить размер панели задач win7».]]></description>
		<lastBuildDate>Wed, 07 Mar 2018 17:11:03 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Изменить размер панели задач win7]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=123976#p123976</link>
			<description><![CDATA[<p><strong>По зажатию F5</strong>.</p><div class="codebox"><pre><code>f5::
Sleep, 200 ; пауза
If GetKeyState(&quot;f5&quot;,&quot;P&quot;) = 0 ; отслеживаем состояние - если кнопка отпущена
  Sendplay, {f5} ; выполняем обычное действие
else ; в противном случае, то есть если после паузы клавиша в нажатом состоянии
  { ;, клавиша %A_ThisHotkey% нажата по истечении заданного периода ; само действие
    CoordMode, Mouse, Screen
    SystemCursor(&quot;Off&quot;)
    PostMessage, 0x112, 0xF000,,, ahk_class Shell_TrayWnd  ; SC_SIZE
    ControlSend, , {right},ahk_class Shell_TrayWnd
    MouseMove, 300, 500
    sleep, 100
    stop2:
    ControlSend, , {enter},ahk_class Shell_TrayWnd
    sleep, 100
    if (A_Cursor = &quot;SizeWE&quot;)
    goto, stop2
    SystemCursor(&quot;On&quot;)
    return
}
Return

; скрыть курсор
ShowCursor:
SystemCursor(&quot;On&quot;)
ExitApp

SystemCursor(OnOff=1)   ; INIT = &quot;I&quot;,&quot;Init&quot;; OFF = 0,&quot;Off&quot;; TOGGLE = -1,&quot;T&quot;,&quot;Toggle&quot;; ON = others
{
    static AndMask, XorMask, $, h_cursor
        ,c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13 ; system cursors
        , b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13   ; blank cursors
        , h1,h2,h3,h4,h5,h6,h7,h8,h9,h10,h11,h12,h13   ; handles of default cursors
    if (OnOff = &quot;Init&quot; or OnOff = &quot;I&quot; or $ = &quot;&quot;)       ; init when requested or at first call
    {
        $ = h                                          ; active default cursors
        VarSetCapacity( h_cursor,4444, 1 )
        VarSetCapacity( AndMask, 32*4, 0xFF )
        VarSetCapacity( XorMask, 32*4, 0 )
        system_cursors = 32512,32513,32514,32515,32516,32642,32643,32644,32645,32646,32648,32649,32650
        StringSplit c, system_cursors, `,
        Loop %c0%
        {
            h_cursor   := DllCall( &quot;LoadCursor&quot;, &quot;uint&quot;,0, &quot;uint&quot;,c%A_Index% )
            h%A_Index% := DllCall( &quot;CopyImage&quot;,  &quot;uint&quot;,h_cursor, &quot;uint&quot;,2, &quot;int&quot;,0, &quot;int&quot;,0, &quot;uint&quot;,0 )
            b%A_Index% := DllCall(&quot;CreateCursor&quot;,&quot;uint&quot;,0, &quot;int&quot;,0, &quot;int&quot;,0
                , &quot;int&quot;,32, &quot;int&quot;,32, &quot;uint&quot;,&amp;AndMask, &quot;uint&quot;,&amp;XorMask )
        }
    }
    if (OnOff = 0 or OnOff = &quot;Off&quot; or $ = &quot;h&quot; and (OnOff &lt; 0 or OnOff = &quot;Toggle&quot; or OnOff = &quot;T&quot;))
        $ = b  ; use blank cursors
    else
        $ = h  ; use the saved cursors

    Loop %c0%
    {
        h_cursor := DllCall( &quot;CopyImage&quot;, &quot;uint&quot;,%$%%A_Index%, &quot;uint&quot;,2, &quot;int&quot;,0, &quot;int&quot;,0, &quot;uint&quot;,0 )
        DllCall( &quot;SetSystemCursor&quot;, &quot;uint&quot;,h_cursor, &quot;uint&quot;,c%A_Index% )
    }
}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (OmTatSat)]]></author>
			<pubDate>Wed, 07 Mar 2018 17:11:03 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=123976#p123976</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Изменить размер панели задач win7]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=123975#p123975</link>
			<description><![CDATA[<p><strong>Усовершенствованная версия - быстрее и невидимая</strong>.</p><div class="codebox"><pre><code>Sleep, 5000
    CoordMode, Mouse, Screen
    SystemCursor(&quot;Off&quot;)
    PostMessage, 0x112, 0xF000,,, ahk_class Shell_TrayWnd  ; SC_SIZE
    ControlSend, , {right},ahk_class Shell_TrayWnd
    MouseMove, 300, 500
    sleep, 100
    stop2:
    ControlSend, , {enter},ahk_class Shell_TrayWnd
    sleep, 100
    if (A_Cursor = &quot;SizeWE&quot;)
    goto, stop2
    SystemCursor(&quot;On&quot;)
    return


; скрыть курсор
ShowCursor:
SystemCursor(&quot;On&quot;)
ExitApp

SystemCursor(OnOff=1)   ; INIT = &quot;I&quot;,&quot;Init&quot;; OFF = 0,&quot;Off&quot;; TOGGLE = -1,&quot;T&quot;,&quot;Toggle&quot;; ON = others
{
    static AndMask, XorMask, $, h_cursor
        ,c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13 ; system cursors
        , b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13   ; blank cursors
        , h1,h2,h3,h4,h5,h6,h7,h8,h9,h10,h11,h12,h13   ; handles of default cursors
    if (OnOff = &quot;Init&quot; or OnOff = &quot;I&quot; or $ = &quot;&quot;)       ; init when requested or at first call
    {
        $ = h                                          ; active default cursors
        VarSetCapacity( h_cursor,4444, 1 )
        VarSetCapacity( AndMask, 32*4, 0xFF )
        VarSetCapacity( XorMask, 32*4, 0 )
        system_cursors = 32512,32513,32514,32515,32516,32642,32643,32644,32645,32646,32648,32649,32650
        StringSplit c, system_cursors, `,
        Loop %c0%
        {
            h_cursor   := DllCall( &quot;LoadCursor&quot;, &quot;uint&quot;,0, &quot;uint&quot;,c%A_Index% )
            h%A_Index% := DllCall( &quot;CopyImage&quot;,  &quot;uint&quot;,h_cursor, &quot;uint&quot;,2, &quot;int&quot;,0, &quot;int&quot;,0, &quot;uint&quot;,0 )
            b%A_Index% := DllCall(&quot;CreateCursor&quot;,&quot;uint&quot;,0, &quot;int&quot;,0, &quot;int&quot;,0
                , &quot;int&quot;,32, &quot;int&quot;,32, &quot;uint&quot;,&amp;AndMask, &quot;uint&quot;,&amp;XorMask )
        }
    }
    if (OnOff = 0 or OnOff = &quot;Off&quot; or $ = &quot;h&quot; and (OnOff &lt; 0 or OnOff = &quot;Toggle&quot; or OnOff = &quot;T&quot;))
        $ = b  ; use blank cursors
    else
        $ = h  ; use the saved cursors

    Loop %c0%
    {
        h_cursor := DllCall( &quot;CopyImage&quot;, &quot;uint&quot;,%$%%A_Index%, &quot;uint&quot;,2, &quot;int&quot;,0, &quot;int&quot;,0, &quot;uint&quot;,0 )
        DllCall( &quot;SetSystemCursor&quot;, &quot;uint&quot;,h_cursor, &quot;uint&quot;,c%A_Index% )
    }
}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (OmTatSat)]]></author>
			<pubDate>Wed, 07 Mar 2018 17:07:20 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=123975#p123975</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Изменить размер панели задач win7]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106746#p106746</link>
			<description><![CDATA[<p>Всем спасибо за оперативную помощь, вот такой код полностью удовлетворяет мои нужды.<br />P.S. панель задач слева.<br /></p><div class="codebox"><pre><code>Sleep, 5000
WinActivate, ahk_class Shell_TrayWnd
WinGetPos,,, w, , ahk_class Shell_TrayWnd
;MsgBox, % w 
if w = 32
{
PostMessage, 0x112, 0xF000,,, ahk_class Shell_TrayWnd  ; SC_SIZE
ControlSend, , {right 30}{enter},ahk_class Shell_TrayWnd
}
return</code></pre></div><p>Добавил в планировщик заданий, по этой инструкции <a href="http://admin.sait32.ru/lercontent.php?id=73">http://admin.sait32.ru/lercontent.php?id=73</a> теперь при выходе из гибернации трей автоматом принимает норм размер, ещё раз всем спасибо!</p>]]></description>
			<author><![CDATA[null@example.com (OmTatSat)]]></author>
			<pubDate>Sat, 13 Aug 2016 15:30:01 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106746#p106746</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Изменить размер панели задач win7]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106743#p106743</link>
			<description><![CDATA[<p>У меня твой вариант так работает, иначе просто кликает на старт.<br /></p><div class="codebox"><pre><code>CoordMode Mouse
hWA := WinActive(&quot;A&quot;)
MouseGetPos mX, mY
WinGetPos, , wY, wX, , ahk_class Shell_TrayWnd 
WinActivate, ahk_class Shell_TrayWnd
MouseClickDrag, Left, wX, wY, wX, wY-50, 0
MouseMove mX, mY, 0 
WinActivate, ahk_id %hWA%
Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sat, 13 Aug 2016 14:20:43 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106743#p106743</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Изменить размер панели задач win7]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106741#p106741</link>
			<description><![CDATA[<p>Вообщем в любом из этих вариантов, надо чтобы само определяло где находится панель.<br /></p><div class="codebox"><pre><code>
TaskBarMove(50)
Sleep 500
TaskBarMove(-50) 
Return

TaskBarMove(Seek) {
	S_CoordModeMouse := A_CoordModeMouse
	CoordMode, Mouse, Screen
	hWA := WinActive(&quot;A&quot;)
	MouseGetPos mX, mY
	WinGetPos, wX, wY, wW, wH, ahk_class Shell_TrayWnd ahk_exe explorer.exe
	SysGet, MonitorPrimary, MonitorPrimary
	SysGet, Mon, Monitor, %MonitorPrimary%
	fX := MonLeft - wX, fY := MonTop - wY 
	(fX = 0 &amp;&amp; fY = 0 &amp;&amp; wW &gt; wH) ? (dX := wX + wW // 2, dY := wY + wH - 1, sX := dX, sY := dY + Seek)   ; UP
	: (fX = 0 &amp;&amp; fY = 0) ? (dX := wX + wW - 1, dY := wY + wH // 2, sX := dX + Seek, sY := dY)   ; Left
	: (fX = 0) ? (dX := wX + wW // 2, dY := wY + 1, sX := dX, sY := dY - Seek)   ; Down
	: (dX := wX + 1, dY := wY + wH // 2, sX := dX - Seek, sY := dY)   ; Right
	
	MouseClickDrag, Left, dX, dY, sX, sY
	WinActivate, ahk_id %hWA%
	MouseMove mX, mY 
	CoordMode, Mouse, %S_CoordModeMouse%
}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sat, 13 Aug 2016 13:33:31 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106741#p106741</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Изменить размер панели задач win7]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106740#p106740</link>
			<description><![CDATA[<p>Или так. <br />Думал вообще что по правильному получится, если изменить с помощью SystemParametersInfo рабочую область монитора, но и после этого WinMove не работает.</p><div class="codebox"><pre><code>CoordMode Mouse
hWA := WinActive(&quot;A&quot;)
MouseGetPos mX, mY
WinGetPos, wX, wY, , , ahk_class Shell_TrayWnd ahk_exe explorer.exe
MouseClickDrag, Left, wX, wY, wX, wY-50, 0
MouseMove mX, mY, 0 
WinActivate, ahk_id %hWA%
Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sat, 13 Aug 2016 12:54:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106740#p106740</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Изменить размер панели задач win7]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106739#p106739</link>
			<description><![CDATA[<p>Так можно:<br /></p><div class="codebox"><pre><code>WinActivate, ahk_class Shell_TrayWnd
PostMessage, 0x112, 0xF000,,, ahk_class Shell_TrayWnd  ; SC_SIZE
ControlSend, , {up 4}{enter},ahk_class Shell_TrayWnd</code></pre></div><p>Можно еще отлавливать выход из гибернации.<a href="http://<br />https://autohotkey.com/board/topic/19984-running-commands-on-standby-hibernation-and-resume-events/"><br />https://autohotkey.com/board/topic/199 … me-events/</a></p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sat, 13 Aug 2016 12:44:45 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106739#p106739</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Изменить размер панели задач win7]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106735#p106735</link>
			<description><![CDATA[<p>Здравствуйте.<br />Суть в том, что после гибернации размер панели задач меняется на минимальный, приходится каждый раз её оттягивать на место мышкой, хотелось бы автоматизировать этот процесс.</p><p>Код.<br /></p><div class="codebox"><pre><code>WinMove, ahk_class Shell_TrayWnd ,, , , 300, 1050</code></pre></div><p>Ничего не меняет. В чём проблема?</p>]]></description>
			<author><![CDATA[null@example.com (OmTatSat)]]></author>
			<pubDate>Sat, 13 Aug 2016 07:40:19 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106735#p106735</guid>
		</item>
	</channel>
</rss>
