<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK:Загрузка процессора  на кнопке Пуск в Windows 7]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6682&amp;type=atom" />
	<updated>2012-01-18T06:30:24Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6682</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Загрузка процессора  на кнопке Пуск в Windows 7]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=55766#p55766" />
			<content type="html"><![CDATA[<p>Разве что создать свою кнопку на панели задач и на ней показывать. Вроде как в 7 есть возможность манипулировать кнопкой программы. Не знаю, правда, как и в каких пределах, не вникал в это. Мне бы тоже привычнее было такое представление.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2012-01-18T06:30:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=55766#p55766</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK:Загрузка процессора  на кнопке Пуск в Windows 7]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=55760#p55760" />
			<content type="html"><![CDATA[<p>Раньше был скрипт для Win XP Загрузка процессора&nbsp; на кнопке Пуск<br /></p><div class="codebox"><pre><code>#Persistent
EnvGet, NumCPU, NUMBER_OF_PROCESSORS    ; Добавлено.
VarSetCapacity(IdleTicks, 8)
SetTimer, CheckCPULoad, 1000
return 

CheckCPULoad:
  ControlMove, Button1, -7,, 110,, ahk_class Shell_TrayWnd
  SetFormat, float, 02
  ControlSetText, Button1, % &quot; &quot; GetCPULoad() &quot; %&quot;, ahk_class Shell_TrayWnd 
return 

GetCPULoad() 
{ 
  Global
  SetBatchLines, -1 
  IdleTime0 = %IdleTime%  ; Save previous values 
  Tick0 = %Tick% 
  DllCall(&quot;kernel32.dll\GetSystemTimes&quot;, &quot;uint&quot;,&amp;IdleTicks, &quot;uint&quot;,0, &quot;uint&quot;,0) 
  IdleTime := *(&amp;IdleTicks) 
  Loop 7                  ; Ticks when Windows was idle 
    IdleTime += *( &amp;IdleTicks + A_Index ) &lt;&lt; ( 8 * A_Index ) 
  Tick := A_TickCount     ; Ticks all together 
  load := 100 - 0.01*(IdleTime - IdleTime0)/NumCPU/(Tick - Tick0)  ; Изменено.
  Return, load 
}</code></pre></div><p>Возможно его переделать его под Win 7 ?<br />Знаю что есть много гаджетов -<br />Но скриптом привычнее.<br />Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[Андрейка 007]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26640</uri>
			</author>
			<updated>2012-01-17T17:32:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=55760#p55760</id>
		</entry>
</feed>
