<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Непрерывное воспроизведение нажатия комбинации]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=11000&amp;type=atom" />
	<updated>2015-10-14T09:10:32Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=11000</id>
		<entry>
			<title type="html"><![CDATA[Re: Непрерывное воспроизведение нажатия комбинации]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=97991#p97991" />
			<content type="html"><![CDATA[<p>Всем привет!<br />Есть скрипт , но его надо дополнить , помогите пожалуйста.<br />Необходимо чтоб данный кусок кода выполнялся определенное время.</p><div class="codebox"><pre><code>$F1::
switch := !switch
if switch
{
SetTimer, gogo, 100
}
else
{
SetTimer, gogo, off
}
return
gogo:
SENDINPUT {F1}
click
sleep 500
send {f2}
sleep 50
click
sleep,200
send {f3}
sleep,400
return</code></pre></div><p>После&nbsp; чего нажималась клавиша F8 и скрипт начинался сначала.<br />Помогите пожалуйста дополнить.<br />Заранее благодарен!</p>]]></content>
			<author>
				<name><![CDATA[4esa33]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33412</uri>
			</author>
			<updated>2015-10-14T09:10:32Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=97991#p97991</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Непрерывное воспроизведение нажатия комбинации]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=97985#p97985" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#MaxHotkeysPerInterval 1000
SetBatchLines -1
SetKeyDelay -1
SetTimer t,1
Arr := []

Arr[&quot;$vk31&quot;] :=  {Send:&quot;{vk31}&quot; , Time:50 }
Arr[&quot;$vk32&quot;] :=  {Send:&quot;{vk32}&quot; , Time:1 }
Arr[&quot;$vk41&quot;] :=  {Send:&quot;{vk41}{vk51}&quot; , Time:1 }
Arr[&quot;$vk45&quot;] :=  {Send:&quot;{vk45}&quot; , Time:1 }
Arr[&quot;$vk53&quot;] :=  {Send:&quot;{vk41}&quot; , Time:1 }
Arr[&quot;$vk57&quot;] :=  {Send:&quot;{vk57}&quot; , Time:1 }
Arr[&quot;$vk5A&quot;] :=  {Send:&quot;{vk5A}&quot; , Time:1 }

for i, k in Arr
    Hotkey %i%,pressing,On
pressing:
return
t:
for i, k in Arr
    if GetKeyState((RegExMatch(i,&quot;(vk..)&quot;,hk)+&quot;&quot;) hk1,&quot;p&quot;)
    and (A_TickCount &gt; Arr[i].Timer) &amp;&amp; (Arr[i].Timer := A_TickCount + k.Time)
        Send % k.Send
return

WheelDown::
Send {vk45}
Sleep, 1850
Send {vk45}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2015-10-13T08:33:04Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=97985#p97985</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Непрерывное воспроизведение нажатия комбинации]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=97981#p97981" />
			<content type="html"><![CDATA[<p>Одновременно не могут функционировать, если зажимаешь &quot;<strong>Q</strong>&quot;, то не срабатывает колёсико мыши или же не выполняется код до конца, после задержки.</p><p>То есть, код выполнится только в том случае, пока не отожмёшь &quot;<strong>Q</strong>&quot; (Он как бы лочит ввод).</p><p>p.s. Временно решил проблему, запуском 2-ух разных исполняемых файлов с кодом.</p>]]></content>
			<author>
				<name><![CDATA[kna1703]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33223</uri>
			</author>
			<updated>2015-10-12T19:52:08Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=97981#p97981</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Непрерывное воспроизведение нажатия комбинации]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=97980#p97980" />
			<content type="html"><![CDATA[<p>А в чем проблема?<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>#MaxHotkeysPerInterval 1000
SetBatchLines -1
SetKeyDelay -1

Arr := []
Arr[&quot;$vk31&quot;] :=  {Send:&quot;{vk31}&quot; , Time:50 }
Arr[&quot;$vk32&quot;] :=  {Send:&quot;{vk32}&quot; , Time:1 }
Arr[&quot;$vk41&quot;] :=  {Send:&quot;{vk41}{vk51}&quot; , Time:1 }
Arr[&quot;$vk45&quot;] :=  {Send:&quot;{vk45}&quot; , Time:1 }
Arr[&quot;$vk53&quot;] :=  {Send:&quot;{vk41}&quot; , Time:1 }
Arr[&quot;$vk57&quot;] :=  {Send:&quot;{vk57}&quot; , Time:1 }
Arr[&quot;$vk5A&quot;] :=  {Send:&quot;{vk5A}&quot; , Time:1 }
return

$vk31:: ; 1
$vk32:: ; 2
$vk41:: ; A
$vk45:: ; E
$vk53:: ; S
$vk57:: ; W
$vk5A:: ; Z
While GetKeyState((RegExMatch(A_ThisHotkey,&quot;(vk..)&quot;,hk)+&quot;&quot;) hk1,&quot;p&quot;)
{
    Send %  Arr[A_ThisHotkey].Send
    Sleep % Arr[A_ThisHotkey].Time
}
return

WheelDown::
Send {vk45}
Sleep, 1850
Send {vk45}
return</code></pre></div></div></div>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2015-10-12T19:39:47Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=97980#p97980</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Непрерывное воспроизведение нажатия комбинации]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=97979#p97979" />
			<content type="html"><![CDATA[<p>Получится ли прикрутить данный код к Вашему?<br /></p><div class="codebox"><pre><code>WheelDown::
Send {vk45}
Sleep, 1850
Send {vk45}
return</code></pre></div><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;Как прикрутить к этому коду?</div><div class="fancy_spoiler"><div class="codebox"><pre><code>#MaxHotkeysPerInterval 1000
SetBatchLines -1
SetKeyDelay -1

Arr := []
Arr[&quot;$vk31&quot;] :=  {Send:&quot;{vk31}&quot; , Time:50 }
Arr[&quot;$vk32&quot;] :=  {Send:&quot;{vk32}&quot; , Time:1 }
Arr[&quot;$vk41&quot;] :=  {Send:&quot;{vk41}{vk51}&quot; , Time:1 }
Arr[&quot;$vk45&quot;] :=  {Send:&quot;{vk45}&quot; , Time:1 }
Arr[&quot;$vk53&quot;] :=  {Send:&quot;{vk41}&quot; , Time:1 }
Arr[&quot;$vk57&quot;] :=  {Send:&quot;{vk57}&quot; , Time:1 }
Arr[&quot;$vk5A&quot;] :=  {Send:&quot;{vk5A}&quot; , Time:1 }
return

$vk31:: ; 1
$vk32:: ; 2
$vk41:: ; A
$vk45:: ; E
$vk53:: ; S
$vk57:: ; W
$vk5A:: ; Z
While GetKeyState((RegExMatch(A_ThisHotkey,&quot;(vk..)&quot;,hk)+&quot;&quot;) hk1,&quot;p&quot;)
{
    Send %  Arr[A_ThisHotkey].Send
    Sleep % Arr[A_ThisHotkey].Time
}
return</code></pre></div></div></div>]]></content>
			<author>
				<name><![CDATA[kna1703]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33223</uri>
			</author>
			<updated>2015-10-12T19:31:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=97979#p97979</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Непрерывное воспроизведение нажатия комбинации]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=97950#p97950" />
			<content type="html"><![CDATA[<p>Всё работает отлично, только когда держишь зажатой &quot;<strong>Q</strong>&quot;, потом нажимаешь &quot;<strong>W</strong>&quot; перестаёт работать зажатая &quot;<strong>Q</strong>&quot;, приходится отжимать и снова нажимать на &quot;<strong>Q</strong>&quot;. Это на самом деле не так плохо как кажется.., но мне интересно, можно ли сделать совместную работу при зажатии? (<strong>Точно также работает и по дефолту</strong>)</p><p>И ещё одно меня интересует.., как привязать к этому коду такое:<br /></p><div class="codebox"><pre><code>WheelDown::
Send {vk45}
Sleep, 1850
Send {vk45}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[kna1703]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33223</uri>
			</author>
			<updated>2015-10-09T13:16:06Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=97950#p97950</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Непрерывное воспроизведение нажатия комбинации]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=97949#p97949" />
			<content type="html"><![CDATA[<p>Вот так подходит?<br />В этом варианте можно настраивать задержку у каждой комбинации:<br /></p><div class="codebox"><pre><code>#MaxHotkeysPerInterval 1000
SetBatchLines -1
SetKeyDelay -1

Arr := []
Arr[&quot;$vk31&quot;] :=  {Send:&quot;{vk31}&quot; , Time:50 }
Arr[&quot;$vk32&quot;] :=  {Send:&quot;{vk32}&quot; , Time:1 }
Arr[&quot;$vk41&quot;] :=  {Send:&quot;{vk41}{vk51}&quot; , Time:1 }
Arr[&quot;$vk45&quot;] :=  {Send:&quot;{vk45}&quot; , Time:1 }
Arr[&quot;$vk53&quot;] :=  {Send:&quot;{vk41}&quot; , Time:1 }
Arr[&quot;$vk57&quot;] :=  {Send:&quot;{vk57}&quot; , Time:1 }
Arr[&quot;$vk5A&quot;] :=  {Send:&quot;{vk5A}&quot; , Time:1 }
return

$vk31:: ; 1
$vk32:: ; 2
$vk41:: ; A
$vk45:: ; E
$vk53:: ; S
$vk57:: ; W
$vk5A:: ; Z
While GetKeyState((RegExMatch(A_ThisHotkey,&quot;(vk..)&quot;,hk)+&quot;&quot;) hk1,&quot;p&quot;)
{
    Send %  Arr[A_ThisHotkey].Send
    Sleep % Arr[A_ThisHotkey].Time
}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2015-10-09T08:48:06Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=97949#p97949</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Непрерывное воспроизведение нажатия комбинации]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=97944#p97944" />
			<content type="html"><![CDATA[<p>Я сделал иначе и получилось в таком варианте:<br /></p><div class="codebox"><pre><code>SetBatchLines 1     ; Вот здесь поправил
SetKeyDelay -1
$+vk51::
While GetKeyState(LTrim(A_ThisHotkey,&quot;$+&quot;),&quot;p&quot;)
{
    tooltip % A_Index
    Send {vk41}{vk51}
}
return</code></pre></div><p>Тем самым, полностью убирается первоначальная задержка на ввод, с сохранением стандартной скорости набора.<br />Параметр &quot;<strong>sleep 1</strong>&quot; - это регулируемая скорость набора, равная 1 мс? Стандарт набора = 20 мс?</p><p>Одно большое <strong>НО</strong>, у меня с этим кодом <strong>отказываются работать другие</strong> (во время зажатия) и появляется набор цифр около курсора, а ещё иногда выскакивает эта табличка, когда отжимаю клавишу: (в красном прямоугольнике набор цифр, который появляется около курсора) <br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;Мой общий список кода в 1-ом файле</div><div class="fancy_spoiler"><div class="codebox"><pre><code>$vk41::
Send {vk41}{vk51}
return

$vk45::
Send {vk45}
return

$vk31::
Send {vk31}
return

$vk57::
Send {vk57}
return

$vk32::
Send {vk32}
return

SetBatchLines -1
SetKeyDelay -1
$vk51::
While GetKeyState(LTrim(A_ThisHotkey,&quot;$+&quot;),&quot;p&quot;)
{
    tooltip % A_Index               ; Решил здесь проблему с отображением цифр около курсора
    Send {vk41}{vk51}
    sleep 1                       
}
return

$vk53::
Send {vk41}
return

$vk5A::
Send {vk5A}
return

vk60:: Suspend</code></pre></div></div></div><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;Скриншот таблички</div><div class="fancy_spoiler"><p><span class="postimg"><img src="http://i.imgur.com/E9jXMZS.png" alt="http://i.imgur.com/E9jXMZS.png" /></span></p></div></div><p>Как избавиться от таблички и заставить работать другие модификаторы совместно с Вашим кодом?<br />Ещё раз повторюсь: &quot;Когда зажимаю клавишу &quot;<strong>Q</strong>&quot;, теряется возможность в воспроизведение другого кода.&quot;</p><p>p.s. Ваш вариант намного удобнее, и я могу сам регулировать скорость, в чём большой плюс.</p>]]></content>
			<author>
				<name><![CDATA[kna1703]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33223</uri>
			</author>
			<updated>2015-10-08T11:42:32Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=97944#p97944</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Непрерывное воспроизведение нажатия комбинации]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=97936#p97936" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>SetBatchLines -1
SetKeyDelay -1
$+vk51::
While GetKeyState(LTrim(A_ThisHotkey,&quot;$+&quot;),&quot;p&quot;)
{
    tooltip % A_Index
    Send {vk41}{vk51}
    sleep 1
}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2015-10-07T09:51:37Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=97936#p97936</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Непрерывное воспроизведение нажатия комбинации]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=97934#p97934" />
			<content type="html"><![CDATA[<p>А как уменьшать?<br />Слишком скорострельный вариант <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[kna1703]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33223</uri>
			</author>
			<updated>2015-10-06T21:17:06Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=97934#p97934</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Непрерывное воспроизведение нажатия комбинации]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=97923#p97923" />
			<content type="html"><![CDATA[<p>Вроде как это максимальная скорость:<br /></p><div class="codebox"><pre><code>SetBatchLines -1
SetKeyDelay -1
$+vk51::
While GetKeyState(LTrim(A_ThisHotkey,&quot;$+&quot;),&quot;p&quot;)
{
    tooltip % A_Index
    Send {vk41}{vk51}
}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2015-10-06T06:59:32Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=97923#p97923</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Непрерывное воспроизведение нажатия комбинации]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=97893#p97893" />
			<content type="html"><![CDATA[<p>Здравствуйте!<br />Как написать код, на примере моего, чтобы при нажатии кнопки &quot;Q&quot; (или &quot;Shift + Q&quot;) происходило моментальное (без какой-либо задержки) и непрерывное воспроизведение кода, пока не отожмёшь клавишу.<br /></p><div class="codebox"><pre><code>$+vk51::
Send {vk41}{vk51}
return</code></pre></div><p>При данном варианте выполняется только один пункт - непрерывное воспроизведение. <br />Моя задача сделать так, чтобы после 1-ого появления символов не было задержки (где-то 0.5 сек.), как и в дальнейшем варианте &quot;Loop&quot; режима.</p><p>2-ой вопрос: Как уменьшить или же увеличить задержку в воспроизведении кода? <br />Пример: Нажал на кнопку и пропечаталось 100 символов за 1 сек, вместо 10 - как по умолчанию.</p>]]></content>
			<author>
				<name><![CDATA[kna1703]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33223</uri>
			</author>
			<updated>2015-10-05T10:04:25Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=97893#p97893</id>
		</entry>
</feed>
