<?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=9014&amp;type=atom" />
	<updated>2013-12-15T04:07:43Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9014</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отсчет таймера на графическом интерфейсе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=78132#p78132" />
			<content type="html"><![CDATA[<p>В вашем варианте таймер уходит в минус, и нет никакого выхода из цикла.</p><p>Тогда уж так:<br /></p><div class="codebox"><pre><code>
starttime = 5
Gui, Add, Text, vText, Time:   %starttime%
Gui, Add, Button, gStart, Start
Gui, Show, w111, Time
Return

Start: 
    time := A_GuiControl ? starttime : time ; это если надо по кнопке запускать таймер сначала
    GuiControl, , Text, % &quot;Time:   &quot; time-- 
    SetTimer, Start, % time &lt; 0 ? &quot;Off&quot; : &quot;-1000&quot;
    Return 
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-12-15T04:07:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=78132#p78132</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отсчет таймера на графическом интерфейсе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=78099#p78099" />
			<content type="html"><![CDATA[<p><strong>sergeiplugatyr</strong>, спасибо, как раз то, что мне нужно было.<br /><strong>serzh82saratov</strong>, вам тоже спасибо, очень интересный таймер, оставлю на будущее.</p>]]></content>
			<author>
				<name><![CDATA[Captain_SERG]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31229</uri>
			</author>
			<updated>2013-12-13T19:40:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=78099#p78099</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отсчет таймера на графическом интерфейсе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=78098#p78098" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>time = 850
Gui, Add, Text, x5 y29 w33 h14, Time:
Gui, Add, Text, x110 y29 w58 h13 vText, %time%
Gui, Add, Button, x37 y72 w100 h30 gStart, Start
Gui, Show, Center w176 h103, Time
Return
Start:
time -=1
GuiControl, , Text, %time%
Sleep, 1000
Goto, Start
Return
GuiClose:
ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[sergeiplugatyr]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30382</uri>
			</author>
			<updated>2013-12-13T19:14:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=78098#p78098</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отсчет таймера на графическом интерфейсе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=78097#p78097" />
			<content type="html"><![CDATA[<p>Попробуйте так:<br /></p><div class="codebox"><pre><code>
MaxIndex := Num := 850
Gui Margin, 0, 0
Gui, Font, s64 Bold, Tempus Sans ITC 
Gui -Caption +AlwaysOnTop +E0x08000000 +Lastfound 
Gui Color, 0x1C9900
WinSet, TransColor, 0x1C9900
Gui Add, Text, vText cDBC935 Center, % MaxIndex
Gui Show, NA x5 y5 
    
Picture:  
    GuiControl,, Text, % Num--
    SetTimer, % Num = 0 ? &quot;Hide&quot; : &quot;Picture&quot;, -1000
    Return
    
Hide:
    Gui Hide 
    Return 
</code></pre></div><p>или что-нибудь ещё из <a href="http://forum.script-coding.com/viewtopic.php?pid=72899#p72899">этой темы</a>.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-12-13T19:12:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=78097#p78097</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Отсчет таймера на графическом интерфейсе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=78096#p78096" />
			<content type="html"><![CDATA[<p>Здравствуйте, меня интересует как сделать обновляющийся таймер на GUI (без обновления GUI).</p><p>Я сделал такой тамер:<br /></p><div class="codebox"><pre><code>Start:
time=850
Start1:
time -=1
Sleep, 1000
Goto, Start1</code></pre></div><p>При нажатии на кнопку Start начнется отсчет от 850 секунд</p><p>Я пробовал сделать так:<br /></p><div class="codebox"><pre><code>Gui, Add, Text, x6 y71 w90 h40 +Center, Осталось:
Gui, Add, Text, x106 y71 w100 h40 , %time% секунд</code></pre></div><p>Но количество оставшегося времени не менялось</p>]]></content>
			<author>
				<name><![CDATA[Captain_SERG]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31229</uri>
			</author>
			<updated>2013-12-13T19:04:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=78096#p78096</id>
		</entry>
</feed>
