<?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=8366&amp;type=atom" />
	<updated>2013-06-06T20:12:35Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8366</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Счетчик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72814#p72814" />
			<content type="html"><![CDATA[<p>спасибо большое!!! очень поможет в работе! еще раз спасибо!!!</p>]]></content>
			<author>
				<name><![CDATA[BorisR4zer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30239</uri>
			</author>
			<updated>2013-06-06T20:12:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72814#p72814</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Счетчик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72798#p72798" />
			<content type="html"><![CDATA[<p>Забыл спросить, сколько документов у вас может быть в минуту. Ну, допустим, от 0,1 до 99,9.<br /></p><div class="codebox"><pre><code>
Gui, +ToolWindow +AlwaysOnTop +HwndGuiHwnd
Gui, Font, Verdana s12
Gui, Add, Text, vCounter w36 Right, 0
Gui, Add, Text, vRate w36 Right, 0
Gui, Font, Verdana s10
Gui, Add, Button, Default Center vStart gStart, Старт
Gui, Show,, Счётчик
ControlFocus, Static1, ahk_id %GuiHwnd%
Started = 0
Return

Start:
    If (Started = 0) {
        GuiControl,, Start, Стоп
        Time0 := A_TickCount
        Started = 1
    }
    Else {
        GuiControl,, Start, Старт
        Time += (Time1 - Time0)
        Started = 0
    }        
    ControlFocus, Static1, ahk_id %GuiHwnd%
Return

~^Space::
    If (Started = 1) {
        GuiControlGet, Counter
        Counter := Counter + 1
        GuiControl,, Counter, %Counter%
        Time1 := A_TickCount
        Time += (Time1 - Time0) / 1000
        Time0 := Time1
        Rate := Round((Counter / Time) * 60, 1)
        GuiControl,, Rate, %Rate%
    }
Return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2013-06-06T12:35:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72798#p72798</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Счетчик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72795#p72795" />
			<content type="html"><![CDATA[<p>можно и дробный, если перерыв, то да, нужен стоп</p>]]></content>
			<author>
				<name><![CDATA[BorisR4zer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30239</uri>
			</author>
			<updated>2013-06-06T10:49:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72795#p72795</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Счетчик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72792#p72792" />
			<content type="html"><![CDATA[<p>А если у вас перерыв в работе? Нужен ещё и стоп? Если результат деления дробный, дробная часть отбрасывается? Округляется до целого? Показывается как есть?</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2013-06-06T10:16:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72792#p72792</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Счетчик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72781#p72781" />
			<content type="html"><![CDATA[<p>Еще появилась идея добавить в этот счетчик секундомер, и при начале работы мог бы нажать start и количество нажатых ^space делилось бы на количество времени которое прошло после нажатия start, и выводилось бы в соседней строке,&nbsp; тем самым я бы мог знать свою производительность, скажем сколько в среднем документов я регистрирую в минуту . Буду очень благодарен.</p>]]></content>
			<author>
				<name><![CDATA[BorisR4zer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30239</uri>
			</author>
			<updated>2013-06-06T08:30:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72781#p72781</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Счетчик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72752#p72752" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Zohann пишет:</cite><blockquote><p>Добавьте <strong>Gui, +AlwaysOnTop</strong> и будет поверх всех</p></blockquote></div><p>Зачем добавлять то, что уже есть?</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2013-06-05T12:12:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72752#p72752</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Счетчик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72749#p72749" />
			<content type="html"><![CDATA[<p>Добавьте <strong>Gui, +AlwaysOnTop</strong> и будет поверх всех</p>]]></content>
			<author>
				<name><![CDATA[Zohann]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26234</uri>
			</author>
			<updated>2013-06-05T12:03:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72749#p72749</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Счетчик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72747#p72747" />
			<content type="html"><![CDATA[<p>спасибо! этого вполне достаточно!</p>]]></content>
			<author>
				<name><![CDATA[BorisR4zer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30239</uri>
			</author>
			<updated>2013-06-05T10:44:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72747#p72747</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Счетчик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72742#p72742" />
			<content type="html"><![CDATA[<p>Ну, если совсем просто, то можно так, наверно:<br /></p><div class="codebox"><pre><code>
Gui, +ToolWindow +AlwaysOnTop
Gui, Font, Verdana s13
Gui, Add, Text, vCounter w36 Right, 0
Gui, Show,, Счётчик
Return

~^Space::
    GuiControlGet, Counter
    Counter := Counter + 1
    GuiControl,, Counter, %Counter%
Return     
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2013-06-05T09:44:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72742#p72742</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Счетчик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72740#p72740" />
			<content type="html"><![CDATA[<p>Доброго времени суток. <br />Совсем недавно для себя открыл ahk, и теперь скрипты значительно облегчают мне работу.<br />Пока что я освоил только основные функции, до GUI мне наверное еще далеко, но хотелось бы чтоб кто то помог сделать простенький счетчик нажатий. Я работаю оператором и обрабатываю документы и каждый раз после обработки документа, я регистрирую его с помощью ^space. Хотелось бы иметь окошко - счетчик, в котором бы отображалось количество нажатых мною ^space и тем самым я буду знать сколько на данный момент я обработал документов.</p>]]></content>
			<author>
				<name><![CDATA[BorisR4zer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30239</uri>
			</author>
			<updated>2013-06-05T09:21:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72740#p72740</id>
		</entry>
</feed>
