<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; Пропуск действия \ отмена Sleep]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=10238</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=10238&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Пропуск действия \ отмена Sleep».]]></description>
		<lastBuildDate>Tue, 16 Dec 2014 10:17:59 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Пропуск действия \ отмена Sleep]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=89408#p89408</link>
			<description><![CDATA[<p>По мотивам примера от <strong>Malcev</strong>:</p><div class="codebox"><pre><code>1::
Soundbeep, 1000, 300
Sleep(1000)
Soundbeep, 2000, 300
Sleep(2000)
Soundbeep, 3000, 300
Sleep(3000)
Soundbeep, 4000, 300
Return

2:: n := 0

Sleep(x)
    {
    global n
    n := 1
    Loop, % x/100
    Sleep, % 100*n
    }</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Tue, 16 Dec 2014 10:17:59 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=89408#p89408</guid>
		</item>
		<item>
			<title><![CDATA[Re: Пропуск действия \ отмена Sleep]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=89302#p89302</link>
			<description><![CDATA[<p>А зачем примитивный Sleep вообще?&nbsp; Сам ответ - по любому, какие то переменные &quot;шевелит&quot;. Вот их и надо ловить.</p>]]></description>
			<author><![CDATA[null@example.com (<IvanSan>)]]></author>
			<pubDate>Sun, 14 Dec 2014 22:13:56 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=89302#p89302</guid>
		</item>
		<item>
			<title><![CDATA[Re: Пропуск действия \ отмена Sleep]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=89300#p89300</link>
			<description><![CDATA[<p>Пропуск задержки по запускающей-же клавише:<br /></p><div class="codebox"><pre><code>
$1::
    i := i = 4 ? 0 : i
Input:
    SendInput % &quot;{f6}/c &quot; ([&quot;текст 1&quot;,&quot;текст 2&quot;,&quot;текст 3&quot;,&quot;текст 4&quot;][++i]) &quot;{enter}&quot;
    SetTimer Input, % i = 4 ? &quot;Off&quot; : &quot;-2000&quot;
    Return 
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sun, 14 Dec 2014 22:04:56 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=89300#p89300</guid>
		</item>
		<item>
			<title><![CDATA[Re: Пропуск действия \ отмена Sleep]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=89298#p89298</link>
			<description><![CDATA[<p>Как вариант:<br /></p><div class="codebox"><pre><code>
$1::
    i := 0
Input:
    SendInput % &quot;{f6}/c &quot; ([&quot;текст 1&quot;,&quot;текст 2&quot;,&quot;текст 3&quot;,&quot;текст 4&quot;][++i]) &quot;{enter}&quot;
    SetTimer Input, % i = 4 ? &quot;Off&quot; : &quot;-2000&quot; 
    Return
     
$2:: SetTimer Input, % i = 4 ? &quot;Off&quot; : &quot;-1&quot;
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sun, 14 Dec 2014 20:57:21 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=89298#p89298</guid>
		</item>
		<item>
			<title><![CDATA[Re: Пропуск действия \ отмена Sleep]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=89295#p89295</link>
			<description><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Так как-нибудь:<br /></p><div class="codebox"><pre><code>SleepTime := 10000
1::
   SendInput {f6}/c 1{enter}
   Gosub, waiting
   SendInput {f6}/c 2{enter}
   Gosub, waiting
   SendInput {f6}/c 3{enter}
   Gosub, waiting
   SendInput {f6}/c 4{enter}
   return
   
2:: cancel := true
   
waiting:
   start := A_TickCount
   while A_TickCount - start &lt; SleepTime &amp;&amp; !cancel
      Sleep, 10
   cancel := false
   Return</code></pre></div></blockquote></div><p>Как все сложно..<br />Спасибо большое.</p>]]></description>
			<author><![CDATA[null@example.com (dewy.thefirst)]]></author>
			<pubDate>Sun, 14 Dec 2014 19:36:08 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=89295#p89295</guid>
		</item>
		<item>
			<title><![CDATA[Re: Пропуск действия \ отмена Sleep]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=89294#p89294</link>
			<description><![CDATA[<p>Так как-нибудь:<br /></p><div class="codebox"><pre><code>SleepTime := 10000
1::
   SendInput {f6}/c 1{enter}
   Gosub, waiting
   SendInput {f6}/c 2{enter}
   Gosub, waiting
   SendInput {f6}/c 3{enter}
   Gosub, waiting
   SendInput {f6}/c 4{enter}
   return
   
2:: cancel := true
   
waiting:
   start := A_TickCount
   while A_TickCount - start &lt; SleepTime &amp;&amp; !cancel
      Sleep, 10
   cancel := false
   Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 14 Dec 2014 19:19:57 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=89294#p89294</guid>
		</item>
		<item>
			<title><![CDATA[Re: Пропуск действия \ отмена Sleep]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=89292#p89292</link>
			<description><![CDATA[<p>Не так понял вопрос.<br />Вместо sleep можно использовать keywait:<br /></p><div class="codebox"><pre><code>KeyWait, a, D T20 
msgbox</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sun, 14 Dec 2014 19:05:50 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=89292#p89292</guid>
		</item>
		<item>
			<title><![CDATA[Re: Пропуск действия \ отмена Sleep]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=89290#p89290</link>
			<description><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><div class="codebox"><pre><code>x := 2000
1::
Sleep % x
Sleep % x
Sleep % x
msgbox
return

2::
x := &quot;&quot;
return</code></pre></div><p>Или если разные значения sleep:<br /></p><div class="codebox"><pre><code>x := 1
1::
Sleep % 2000*x
Sleep % 3000*x
Sleep % 5000*x
msgbox
return

2::
x := &quot;&quot;
return</code></pre></div></blockquote></div><p>А какой смысл, не пойму?</p>]]></description>
			<author><![CDATA[null@example.com (dewy.thefirst)]]></author>
			<pubDate>Sun, 14 Dec 2014 18:55:53 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=89290#p89290</guid>
		</item>
		<item>
			<title><![CDATA[Re: Пропуск действия \ отмена Sleep]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=89289#p89289</link>
			<description><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Правильно ли я понял, что отмена ожидания должна быть по нажатию какой-нибудь клавиши? Всё равно, какой?</p></blockquote></div><p>Да.</p><p>Клавишу подставлю.</p>]]></description>
			<author><![CDATA[null@example.com (dewy.thefirst)]]></author>
			<pubDate>Sun, 14 Dec 2014 18:50:43 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=89289#p89289</guid>
		</item>
		<item>
			<title><![CDATA[Re: Пропуск действия \ отмена Sleep]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=89288#p89288</link>
			<description><![CDATA[<div class="codebox"><pre><code>x := 2000
1::
Sleep % x
Sleep % x
Sleep % x
msgbox
return

2::
x := &quot;&quot;
return</code></pre></div><p>Или если разные значения sleep:<br /></p><div class="codebox"><pre><code>x := 1
1::
Sleep % 2000*x
Sleep % 3000*x
Sleep % 5000*x
msgbox
return

2::
x := &quot;&quot;
return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sun, 14 Dec 2014 18:47:52 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=89288#p89288</guid>
		</item>
		<item>
			<title><![CDATA[Re: Пропуск действия \ отмена Sleep]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=89286#p89286</link>
			<description><![CDATA[<p>Правильно ли я понял, что отмена ожидания должна быть по нажатию какой-нибудь клавиши? Всё равно, какой?</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 14 Dec 2014 18:16:21 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=89286#p89286</guid>
		</item>
		<item>
			<title><![CDATA[Re: Пропуск действия \ отмена Sleep]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=89285#p89285</link>
			<description><![CDATA[<p>Объясню по другому.<br />В игре я провожу тест на вступление, сделал биндер, который каждые 20 секунд задает вопрос.<br />Так вот, допустим человек ответил на вопрос быстрее, чем 20 секунд.<br />Пусть даже через 2-3 секунды. И что бы не стоять и не ждать еще ~17 секунд просто так, я бы хотел сделать пропуск этой задержки, как вы уже поняли.<br />Возможно такое вообще?</p>]]></description>
			<author><![CDATA[null@example.com (dewy.thefirst)]]></author>
			<pubDate>Sun, 14 Dec 2014 18:11:18 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=89285#p89285</guid>
		</item>
		<item>
			<title><![CDATA[Re: Пропуск действия \ отмена Sleep]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=89284#p89284</link>
			<description><![CDATA[<div class="quotebox"><cite>dewy.thefirst пишет:</cite><blockquote><p>Как сделать пропуск Sleep?</p></blockquote></div><p>Не пишите его, где не надо.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 14 Dec 2014 17:04:23 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=89284#p89284</guid>
		</item>
		<item>
			<title><![CDATA[Пропуск действия \ отмена Sleep]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=89271#p89271</link>
			<description><![CDATA[<p>Всем привет. <br />Как сделать пропуск Sleep?<br />К примеру, у меня есть бинд:<br /></p><div class="codebox"><pre><code>
1::
SendInput {f6}/c 1{enter}
Sleep 10000
SendInput {f6}/c 2{enter}
Sleep 10000
SendInput {f6}/c 3{enter}
Sleep 10000
SendInput {f6}/c 4{enter}
return
</code></pre></div><p>Вот оно написало &quot;1&quot;, через 10 секунд написало &quot;2&quot;, а что бы написать &quot;3&quot; мне уже не нужно ждать 10 секунд, и я хочу что бы при нажатии кнопки, Sleep 10000 пропускалось, и выполнялось след. действие.<br />Не знаю как сделать, даже примерно.<br />Помогите пожалуйста.</p>]]></description>
			<author><![CDATA[null@example.com (dewy.thefirst)]]></author>
			<pubDate>Sun, 14 Dec 2014 11:54:02 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=89271#p89271</guid>
		</item>
	</channel>
</rss>
