<?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=17104&amp;type=atom" />
	<updated>2022-05-10T14:54:10Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17104</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прогесс бар в панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153158#p153158" />
			<content type="html"><![CDATA[<p>Вроде взрослые люди, могли бы уже после 10 поста загуглить и не париться.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2022-05-10T14:54:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153158#p153158</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прогесс бар в панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153155#p153155" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Phoenixxx_Czar пишет:</cite><blockquote><p>В моем понимании, панель задач - это иконки слева, а справа возле часов - трей.</p></blockquote></div><p>Непонятно. Область уведомления - это тоже панель задач.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2022-05-10T01:51:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153155#p153155</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прогесс бар в панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153136#p153136" />
			<content type="html"><![CDATA[<p><strong>Phoenixxx_Czar</strong>, я себе так представляю:<br />- вся эта длинная штука, которая обычно расположена снизу экрана, называется &quot;Панель задач&quot; (Taskbar);<br />- слева Панели задач находится кнопка &quot;Пуск&quot; (Start button);<br />- справа от кнопки &quot;Пуск&quot; находится область быстрого запуска (Quick launch);<br />- в правом углу Панели задач находится &quot;Языковая панель&quot; + &quot;Область уведомлений&quot; (Tray) + часы с календарём.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2022-05-08T08:21:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153136#p153136</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прогесс бар в панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153131#p153131" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>svoboden пишет:</cite><blockquote><p>Область уведомления - это тоже область панели задач.</p></blockquote></div><p>В моем понимании, панель задач - это иконки слева, а справа возле часов - трей.</p><div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p><strong>svoboden</strong>, по-моему, требовалось отобразить прогресс непосредственно в Панели задач.<br />Типа того:<span class="postimg"><img src="https://blog.zwezdin.com/2009/windows7-taskbar-part1/0f3a2ce1/1@2x.png" alt="https://blog.zwezdin.com/2009/windows7-taskbar-part1/0f3a2ce1/1@2x.png" /></span></p></blockquote></div><p>Я подразумевал именно то, что есть на изображении.</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2022-05-08T01:15:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153131#p153131</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прогесс бар в панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153120#p153120" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p>написано в названии темы.</p></blockquote></div><p>В вопрос было написно у иконки. Область уведомления - это тоже область панели задач. В моем примере у иконки идет заполнение.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2022-05-07T20:11:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153120#p153120</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прогесс бар в панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153119#p153119" />
			<content type="html"><![CDATA[<p><strong>svoboden</strong>, написано в названии темы.<br />Кстати, должна быть задействована правильная тема оформления. В классической теме эта фишка не работает.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2022-05-07T19:50:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153119#p153119</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прогесс бар в панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153118#p153118" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p>прогресс непосредственно в Панели задач</p></blockquote></div><p>Где такое было написано?</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2022-05-07T19:00:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153118#p153118</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прогесс бар в панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153108#p153108" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, все работает, находил данную функцию там. Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2022-05-07T14:01:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153108#p153108</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прогесс бар в панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153106#p153106" />
			<content type="html"><![CDATA[<p>Попробуйте так:<br /></p><div class="codebox"><pre><code>Gui, +hwndhGui
Gui, Show, NA
Sleep, 1000

Loop 3  {
   SetProgressOnTaskBarButton(hGui, 8, 1000)
   Sleep 500
   SetProgressOnTaskBarButton(hGui, 0)
   Sleep 500
}

SetProgressOnTaskBarButton(hGui, 1)
Sleep, 4000

Loop 500  {
   Sleep, 10
   SetProgressOnTaskBarButton(hGui, 2, A_Index*2)
}

SetProgressOnTaskBarButton(hGui, 0)
Sleep, 1000
ExitApp

SetProgressOnTaskBarButton(hWnd, state, percent := &quot;&quot;) {
   static CLSID_TaskbarList := &quot;{56FDF344-FD6D-11d0-958A-006097C9A090}&quot;
        , IID_ITaskbarList3 := &quot;{EA1AFB91-9E28-4B86-90E9-9E9F8A5EEFAF}&quot;
        , ITaskbarList3
/*  ITaskbarList3::SetProgressState method: https://goo.gl/JL8EyW
state values: 
TBPF_NOPROGRESS    := 0x0
TBPF_INDETERMINATE := 0x1
TBPF_NORMAL        := 0x2
TBPF_ERROR         := 0x4
TBPF_PAUSED        := 0x8
*/
   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 (percent != &quot;&quot;)  ; ITaskbarList3::SetProgressValue
      DllCall(NumGet(NumGet(ITaskbarList3 + 0) + A_PtrSize*9), &quot;Ptr&quot;, ITaskbarList3, &quot;Ptr&quot;, hWnd, &quot;Int64&quot;, percent, &quot;Int64&quot;, 1000)
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-05-07T10:56:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153106#p153106</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прогесс бар в панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153103#p153103" />
			<content type="html"><![CDATA[<p><strong>svoboden</strong>, по-моему, требовалось отобразить прогресс непосредственно в Панели задач.<br />Типа того:<span class="postimg"><img src="https://blog.zwezdin.com/2009/windows7-taskbar-part1/0f3a2ce1/1@2x.png" alt="https://blog.zwezdin.com/2009/windows7-taskbar-part1/0f3a2ce1/1@2x.png" /></span></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2022-05-07T08:15:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153103#p153103</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прогесс бар в панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153097#p153097" />
			<content type="html"><![CDATA[<p>Было: <a href="http://forum.script-coding.com/viewtopic.php?id=15214">http://forum.script-coding.com/viewtopic.php?id=15214</a>.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2022-05-07T02:27:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153097#p153097</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прогесс бар в панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153091#p153091" />
			<content type="html"><![CDATA[<p><strong>Phoenixxx_Czar</strong>, нет такого.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-05-06T19:01:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153091#p153091</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прогесс бар в панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153090#p153090" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong>, встроенного в ахк.</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2022-05-06T19:00:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153090#p153090</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прогесс бар в панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153088#p153088" />
			<content type="html"><![CDATA[<p>Не стоит давать ссылки на страницы многолетней давности, чаще всего информация неактуальна.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-05-06T18:55:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153088#p153088</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прогесс бар в панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153087#p153087" />
			<content type="html"><![CDATA[<p>Встроенного во что? В Windows XP я такого не припоминаю.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2022-05-06T18:53:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153087#p153087</id>
		</entry>
</feed>
