<?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=17428</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=17428&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Степень загрузки в панели задач.».]]></description>
		<lastBuildDate>Tue, 18 Oct 2022 19:44:57 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Степень загрузки в панели задач.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155339#p155339</link>
			<description><![CDATA[<p>Большое спасибо.</p>]]></description>
			<author><![CDATA[null@example.com (Vsevolod)]]></author>
			<pubDate>Tue, 18 Oct 2022 19:44:57 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155339#p155339</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Степень загрузки в панели задач.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155338#p155338</link>
			<description><![CDATA[<p>Примерно так:<br /></p><div class="codebox"><pre><code>Gui, +hwndhGui

percent := 0
Loop 100 {
   Sleep, 30
   Gui, Show, NA, % &quot;Выполнено &quot; . ++percent . &quot;%&quot;
   SetProgressOnTaskBarButton(hGui, TBPF_NORMAL := 0x2, percent)
}
Sleep, 500
ExitApp

SetProgressOnTaskBarButton(hWnd, state, completed := &quot;&quot;, total := 100) {
/*  ITaskbarList3::SetProgressState method: https://goo.gl/JL8EyW
state values: 
TBPF_NOPROGRESS    := 0x0
TBPF_INDETERMINATE := 0x1
TBPF_NORMAL        := 0x2
TBPF_ERROR         := 0x4
TBPF_PAUSED        := 0x8
*/
   static CLSID_TaskbarList := &quot;{56FDF344-FD6D-11d0-958A-006097C9A090}&quot;
        , IID_ITaskbarList3 := &quot;{EA1AFB91-9E28-4B86-90E9-9E9F8A5EEFAF}&quot;
        , ITaskbarList3

   if !ITaskbarList3 {
      try ITaskbarList3 := ComObjCreate(CLSID_TaskbarList, IID_ITaskbarList3)
      catch
         Return
   }
   ; ITaskbarList3::SetProgressState
   DllCall(NumGet(NumGet(ITaskbarList3 + 0) + A_PtrSize*10), &quot;Ptr&quot;, ITaskbarList3, &quot;Ptr&quot;, hWnd, &quot;UInt&quot;, state)
   if (completed != &quot;&quot;)  ; ITaskbarList3::SetProgressValue
      DllCall(NumGet(NumGet(ITaskbarList3 + 0) + A_PtrSize*9), &quot;Ptr&quot;, ITaskbarList3, &quot;Ptr&quot;, hWnd, &quot;Int64&quot;, completed, &quot;Int64&quot;, total)
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Tue, 18 Oct 2022 19:28:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155338#p155338</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Степень загрузки в панели задач.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=155337#p155337</link>
			<description><![CDATA[<p>Всем привет. Подскажите пожалуйста, как сделать вот такую зелёную полосу загрузки в панели задач?<br /><span class="postimg"><img src="https://forum.script-coding.com/misc.php?action=pun_attachment&amp;item=2289&amp;download=1&amp;secure_str=40918f13" alt="https://forum.script-coding.com/misc.php?action=pun_attachment&amp;amp;item=2289&amp;amp;download=1&amp;amp;secure_str=40918f13" /></span></p>]]></description>
			<author><![CDATA[null@example.com (Vsevolod)]]></author>
			<pubDate>Tue, 18 Oct 2022 18:55:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=155337#p155337</guid>
		</item>
	</channel>
</rss>
