<?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=11194&amp;type=atom" />
	<updated>2016-01-02T08:28:37Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11194</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт отказывается работать]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100097#p100097" />
			<content type="html"><![CDATA[<p><strong>yalanne</strong><br />Спасибо, я сразу не додумался, что сначала можно просто зациклить...</p>]]></content>
			<author>
				<name><![CDATA[dfm1337]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33579</uri>
			</author>
			<updated>2016-01-02T08:28:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100097#p100097</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт отказывается работать]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100095#p100095" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>F2::ExitApp
F1::
Loop
{
  Send, {vk42}
  sleep 2000

  Loop, 63
  {
	  Send, {vk51}
	  sleep 2000
  }
  
  sleep 2000
}</code></pre></div><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;Если надо что бы скрипт не закрывался на F2 и была мгновенная остановка то вот</div><div class="fancy_spoiler"><div class="codebox"><pre><code>SetFormat, float, 0.1

KWF2orSleep(time)
{
KeyWait F2,% &quot;D T&quot; (time/1000)
if !ErrorLevel
    Exit
}


F1::
Loop
{
  Send, {vk42}
  KWF2orSleep(2000)

  Loop, 63
  {
	  Send, {vk51}
	  KWF2orSleep(2000)
  }
  
  KWF2orSleep(2000)
}

Return</code></pre></div></div></div>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2016-01-02T07:56:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100095#p100095</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт отказывается работать]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100094#p100094" />
			<content type="html"><![CDATA[<p>Вообщем для тех кто не понял, мне нужно чтобы сначала нажалась 1 раз кнопка vk42, затем 63 раза кнопка vk51 и после этого опять vk42 1 раз и потом опять vk51 63 раза и чтобы это было пока я не остановлю скрипт<br /></p><div class="codebox"><pre><code>F1::
Loop, 1
{
Send, {vk42}
Sleep, 2000
}
Loop, 63
{
Send, {vk51}
Sleep, 2000
}
Return

F2::
  ExitApp
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[dfm1337]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33579</uri>
			</author>
			<updated>2016-01-02T05:07:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100094#p100094</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт отказывается работать]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100093#p100093" />
			<content type="html"><![CDATA[<p><strong>stealzy</strong><br />Мне нужно чтобы эти кнопки нажимались именно столько раз и все это было по кругу</p>]]></content>
			<author>
				<name><![CDATA[dfm1337]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33579</uri>
			</author>
			<updated>2016-01-02T04:38:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100093#p100093</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт отказывается работать]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100082#p100082" />
			<content type="html"><![CDATA[<p>Предлагаю подумать на тему смысла цикла <span style="color: green">Loop, 1</span>, о том, что будет, если указать 1000000 в количестве циклов, и о том что будет, если кол-во циклов не указывать вовсе.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2016-01-01T17:00:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100082#p100082</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт отказывается работать]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100080#p100080" />
			<content type="html"><![CDATA[<p>Ищи Settimer</p>]]></content>
			<author>
				<name><![CDATA[Foma]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31521</uri>
			</author>
			<updated>2016-01-01T16:25:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100080#p100080</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт отказывается работать]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100079#p100079" />
			<content type="html"><![CDATA[<p>Мне поможет </p><div class="codebox"><pre><code>GoTo, F1</code></pre></div><p> ?</p>]]></content>
			<author>
				<name><![CDATA[dfm1337]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33579</uri>
			</author>
			<updated>2016-01-01T15:20:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100079#p100079</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт отказывается работать]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100077#p100077" />
			<content type="html"><![CDATA[<p>Как мне зациклить этот скрипт теперь?<br /></p><div class="codebox"><pre><code>F1::
Loop, 1
{
Send, {vk42}
Sleep, 2000
}
Loop, 63
{
Send, {vk51}
Sleep, 2000
}
Return

F2::
  ExitApp
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[dfm1337]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33579</uri>
			</author>
			<updated>2016-01-01T14:32:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100077#p100077</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт отказывается работать]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100076#p100076" />
			<content type="html"><![CDATA[<p>Блин, извините еще не могу сделать чтобы 1 раз нажалась одна кнопка и потом 63 раза другая кнопка но не сразу а с интервалом<br /></p><div class="codebox"><pre><code>F1::
Loop, 63
{
Sleep, 2000
Send, {vk53}
Sleep, 2000
Send, {vk52}
}
Return

F2::
  ExitApp
Return</code></pre></div><p>UPD:<br />Уже сам решил проблему<br /></p><div class="codebox"><pre><code>F1::
Loop, 1
{
Send, {vk42}
Sleep, 2000
}
Loop, 63
{
Send, {vk51}
Sleep, 2000
}
Return

F2::
  ExitApp
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[dfm1337]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33579</uri>
			</author>
			<updated>2016-01-01T14:28:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100076#p100076</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт отказывается работать]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100075#p100075" />
			<content type="html"><![CDATA[<p>Спасибо вам)</p>]]></content>
			<author>
				<name><![CDATA[dfm1337]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33579</uri>
			</author>
			<updated>2016-01-01T14:24:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100075#p100075</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт отказывается работать]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100074#p100074" />
			<content type="html"><![CDATA[<p><strong>yalanne</strong>, ну вот, кто теперь купит удочку, когда тут рыбу нахаляву раздают? :-/</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2016-01-01T14:01:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100074#p100074</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт отказывается работать]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100073#p100073" />
			<content type="html"><![CDATA[<p>*Не успел, выше тоже самое описание:D<br />Неправильно расставлены фигурные скобки для цикла.<br />У вас при нажатии F1 скрипт ждет (2 сек*63), затем один раз нажимает <em>ы\s</em>, затем один раз ждет 2 сек(1 потому что loop,1, цикла не дает), далее один раз нажимает <em>к\r</em> и конец.</p><p>Если надо что бы скрипт нажимал 63 раза <em>ы\s</em> и <em>к\r</em> с интервалом друг от друга в 2 сек то вот:<br /></p><div class="codebox"><pre><code>F1::
Loop, 63
{
Sleep, 2000
Send, {vk53}
Sleep, 2000
Send, {vk52}
}
Return

F2::
  ExitApp
Return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2016-01-01T14:00:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100073#p100073</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт отказывается работать]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100072#p100072" />
			<content type="html"><![CDATA[<p><strong>dfm1337</strong><br />Все ок. Вы просто не дождались наверно)<br /></p><div class="codebox"><pre><code>F1::
	; { эта скобочка ни на что тут не влияет
		; Первая запятая после команд может быть опущена
		Loop 63 ; 63 х спим 2 сек = 2 минуты 6 сек
			Sleep 2000
		Send {vk53}
		Loop 1 ; 1 раз спим по 2 сек
			Sleep, 2000
		Send {vk52}
	; } эта тоже
	Return

F2::ExitApp ; - сокращенная запись для одной команды</code></pre></div><p>Курите синтаксис команды Loop в справке.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2016-01-01T13:55:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100072#p100072</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Скрипт отказывается работать]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100071#p100071" />
			<content type="html"><![CDATA[<p>Решил сделать себе такой скрипт, но при запуске ничего не происходит, может кто то подправит меня?<br /></p><div class="codebox"><pre><code>F1::
{
Loop, 63
Sleep, 2000
Send, {vk53}
Loop, 1
Sleep, 2000
Send, {vk52}
}
Return

F2::
  ExitApp
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[dfm1337]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33579</uri>
			</author>
			<updated>2016-01-01T13:09:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100071#p100071</id>
		</entry>
</feed>
