<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: GUI Progress (индикатор прогресса) - как прикрутить к скрипту?]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=7050&amp;type=atom" />
	<updated>2012-11-02T17:19:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=7050</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI Progress (индикатор прогресса) - как прикрутить к скрипту?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=65363#p65363" />
			<content type="html"><![CDATA[<p>Почитайте лучше справку. <br /></p><div class="codebox"><pre><code>Loop, 100
{
{ ; зачем здесь эта скобка?
    if A_Index &gt; 100 ; A_index никогда не будет &gt; 100
        break
    GuiControl,, Progress1, +1
Sleep, 50
}
  { ; зачем здесь эта скобка?
    if A_Index &gt; 100 ; A_index никогда не будет &gt; 100
        break
    GuiControl,, Progress2, +2
Sleep, 100
}
TrayTip, Внимание!, Прогресс бар 1 завершен, 5, 1
return ; какую функцию выполняет return в теле цикла?
  }</code></pre></div>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-11-02T17:19:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=65363#p65363</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI Progress (индикатор прогресса) - как прикрутить к скрипту?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=65361#p65361" />
			<content type="html"><![CDATA[<p>Оба индикатора замораживаются если по завершению нужно выполнить отчет, а главное они должны выполняться с разной скоростью <img src="//forum.script-coding.com/img/smilies/neutral.png" width="15" height="15" /><br /></p><div class="quotebox"><blockquote><p>#SingleInstance force<br />Gui, Add, Progress, x6 y40 w460 h20 vProgress1<br />Gui, Add, Progress, xp y+2 w460 h20 vProgress2<br />Gui, Add, Text, x6 y10 w240 h20 , Ждите завершения процесса<br />Gui, Show</p><p>Loop, 100<br />{<br /> {<br />&nbsp; &nbsp; if A_Index &gt; 100<br />&nbsp; &nbsp; &nbsp; &nbsp; break<br />&nbsp; &nbsp; GuiControl,, Progress1, +1<br />Sleep, 50<br />}<br />&nbsp; {<br />&nbsp; &nbsp; if A_Index &gt; 100<br />&nbsp; &nbsp; &nbsp; &nbsp; break<br />&nbsp; &nbsp; GuiControl,, Progress2, +2<br />Sleep, 100<br /> }<br />TrayTip, Внимание!, Прогресс бар 1 завершен, 5, 1<br />return<br />&nbsp; }<br />TrayTip, Внимание!, Прогресс бар 2 завершен, 5, 1<br />return</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[Uniors]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28904</uri>
			</author>
			<updated>2012-11-02T16:59:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=65361#p65361</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI Progress (индикатор прогресса) - как прикрутить к скрипту?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=65358#p65358" />
			<content type="html"><![CDATA[<p>Не приводит<br /></p><div class="codebox"><pre><code>Gui, Add, Progress, x6 y40 w460 h20 vProgress1
Gui, Add, Progress, xp y+2 w460 h20 vProgress2
Gui, Add, Text, x6 y10 w240 h20 , Ждите завершения процесса
Gui, Show

Loop, 100
{
    GuiControl,, Progress1, +1
    GuiControl,, Progress2, +2
    Sleep, 30
}

GuiClose:
    ExitApp</code></pre></div><p>В вашем конкретном случае — приводит. Но причина этого не в индикаторе прогресса, попробуйте изменять позицию индикатора при помощи таймера. Два таймера «параллельно» работать могут.</p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-11-02T16:45:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=65358#p65358</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI Progress (индикатор прогресса) - как прикрутить к скрипту?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=65357#p65357" />
			<content type="html"><![CDATA[<p>Возможна ли работа одновременно двух индикаторов прогресса? отвечающих за разные действия, запуск второго приводит к остановке первого индикатора <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Uniors]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28904</uri>
			</author>
			<updated>2012-11-02T16:40:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=65357#p65357</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI Progress (индикатор прогресса) - как прикрутить к скрипту?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58804#p58804" />
			<content type="html"><![CDATA[<p>Да, да точно, спасибо!</p>]]></content>
			<author>
				<name><![CDATA[VlaDOS]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26748</uri>
			</author>
			<updated>2012-04-04T06:08:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58804#p58804</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI Progress (индикатор прогресса) - как прикрутить к скрипту?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58803#p58803" />
			<content type="html"><![CDATA[<p>А что значит &quot;как пользоваться&quot;? Если как полоску двигать, то вот пример:<br /></p><div class="codebox"><pre><code>Gui, Add, Progress, x6 y40 w460 h20 vProgress
Gui, Add, Text, x6 y10 w240 h20 , Ждите завершения процесса
Gui, Show, x229 y182 h87 w477

Loop, 100
{
    GuiControl,, Progress, +1
    Sleep, 100
}

GuiClose:
    ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2012-04-04T05:50:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58803#p58803</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI Progress (индикатор прогресса) - как прикрутить к скрипту?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58801#p58801" />
			<content type="html"><![CDATA[<p><strong>YMP</strong> Можно, проще... но я так и не понял как с компонентом <strong>Прогресс</strong> пользоваться. Может кто знает - подскажет.</p>]]></content>
			<author>
				<name><![CDATA[VlaDOS]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26748</uri>
			</author>
			<updated>2012-04-04T05:16:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58801#p58801</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI Progress (индикатор прогресса) - как прикрутить к скрипту?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58799#p58799" />
			<content type="html"><![CDATA[<p>А не проще просто показывать количество перебранных файлов?<br /></p><div class="quotebox"><blockquote><p>Было здорово чтобы у нас тут разделили GUI&nbsp; на просто код, по подразделам - а то 31 вкладку пока пересмотрел...(( а может даже что то пропустил...</p></blockquote></div><p>Что-то ничего не пойму.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2012-04-04T04:56:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58799#p58799</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: GUI Progress (индикатор прогресса) - как прикрутить к скрипту?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58798#p58798" />
			<content type="html"><![CDATA[<p>Всем добрый день! Нужна помощь, а именно создана программа на <strong>AHK GUI</strong> в ней идет перебор файлов- достаточно длительный процесс, после которого выходит <strong>MSG</strong> об окончании выполнения. Но в промежутки между началом и сообщением вообще нечего не видно и невозможно понять он завис или все таки работает. Хотел с помощью <em>прогресса</em> показать пользователю что операция выполняется. В отдельном окне.&nbsp; Приведите любой пример для наглядности.<br /></p><div class="codebox"><pre><code>Gui, Add, Progress, x6 y40 w460 h20 , 25
Gui, Add, Text, x6 y10 w240 h20 , Ждите завершения процесса
Gui, Show, x229 y182 h87 w477,</code></pre></div><p><em>Было здорово чтобы, тут разделили на [i]GUI</em> и на <em>просто код</em>, по подразделам - а то 31 вкладку пока пересмотрел...((&nbsp; может даже что то пропустил...[/i]</p>]]></content>
			<author>
				<name><![CDATA[VlaDOS]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26748</uri>
			</author>
			<updated>2012-04-04T04:21:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58798#p58798</id>
		</entry>
</feed>
