<?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=8774</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8774&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Добавить свой пункт в всплывающий список кнопки панели задач».]]></description>
		<lastBuildDate>Sat, 16 Nov 2013 18:11:09 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Добавить свой пункт в всплывающий список кнопки панели задач]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=77369#p77369</link>
			<description><![CDATA[<p>Нашёл такую тему - <a href="http://www.autohotkey.com/board/topic/46860-windows-7-settaskbarprogress/?p=291896">SetTaskbarProgress</a>. Поправил для использования без библиотеки Com:</p><div class="codebox"><pre><code>
Gui, Font, s15
Gui, Add, Text,, % &quot;This GUI should show a progress bar on its taskbar button.`n&quot;
                 . &quot;It will demonstrate the four different progress states:`n&quot;
                 . &quot;(N)ormal, (P)aused, (E)rror and (I)ndeterminate.&quot;
Gui, Show        ; Show the window and taskbar button.
Gui, +LastFound  ; SetTaskbarProgress will use this window.
Loop
{
    progress_states=NPE
    Loop, Parse, progress_states
    {
        SetTaskbarProgress(0, A_LoopField)
        Loop 50 {
            SetTaskbarProgress(A_Index*2)
            Sleep 50
        }
        Sleep 1000
        Loop 50 {
            SetTaskbarProgress(100-A_Index*2)
            Sleep 50
        }
        SetTaskbarProgress(0)
        Sleep 1000
    }
    SetTaskbarProgress(&quot;I&quot;)
    Sleep 4000
}

; SetTaskbarProgress  -  Requires Windows 7.
;
; pct    -  A number between 0 and 100 or a state value (see below).
; state  -  &quot;N&quot; (normal), &quot;P&quot; (paused), &quot;E&quot; (error) or &quot;I&quot; (indeterminate).
;           If omitted (and pct is a number), the state is not changed.
; hwnd   -  The ID of the window which owns the taskbar button.
;           If omitted, the Last Found Window is used.
;
 
SetTaskbarProgress(pct, state=&quot;&quot;, hwnd=&quot;&quot;)
{
    static tbl, s0:=0, sI:=1, sN:=2, sE:=4, sP:=8
    if !tbl 
        tbl := ComObjCreate( &quot;{56FDF344-FD6D-11d0-958A-006097C9A090}&quot;, &quot;{ea1afb91-9e28-4b86-90e9-9e9f8a5eefaf}&quot;)  
    if hwnd =
        hwnd := WinExist()
    if pct is not number
        state := pct, pct := &quot;&quot;
    else if (pct = 0 &amp;&amp; state=&quot;&quot;)
        state := 0, pct := &quot;&quot;
    if state in 0,I,N,E,P   ; ITaskbarList3::SetProgressState
        DllCall(NumGet(NumGet(tbl+0)+40), &quot;uint&quot;, tbl, &quot;uint&quot;, hwnd, &quot;uint&quot;, s%state%)
    if pct !=               ; ITaskbarList3::SetProgressValue
        DllCall(NumGet(NumGet(tbl+0)+36), &quot;uint&quot;, tbl, &quot;uint&quot;, hwnd, &quot;int64&quot;, pct*10, &quot;int64&quot;, 1000)
}
Return
</code></pre></div><p>Так понимаю что использование <a href="http://msdn.microsoft.com/en-us/library/dd391703(VS.85).aspx">ITaskbarList3::ThumbBarAddButtons method</a> должно добавлять пункт. Кто нибудь знает как использовать ThumbBarAddButtons, и оно ли?</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sat, 16 Nov 2013 18:11:09 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=77369#p77369</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Добавить свой пункт в всплывающий список кнопки панели задач]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=76052#p76052</link>
			<description><![CDATA[<p><span class="postimg"><img src="http://savepic.net/3884775.png" alt="http://savepic.net/3884775.png" /></span></p><br /><p>Возможно ли добавить свой пункт в окно <span class="bbu">ahk_class DV2ControlHost ahk_exe explorer.exe</span> принадлежащее кнопке в панели задач скрипта AHK.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Tue, 15 Oct 2013 20:07:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=76052#p76052</guid>
		</item>
	</channel>
</rss>
