<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Постоянное ожидание ввода командой Input]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16502&amp;type=atom" />
	<updated>2021-07-23T14:25:19Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16502</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Постоянное ожидание ввода командой Input]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=149058#p149058" />
			<content type="html"><![CDATA[<p>Читайте про <a href="https://script-coding.com/AutoHotkey/Scripts.html#chapter_1">секцию автовыполнения</a>.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-07-23T14:25:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=149058#p149058</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Постоянное ожидание ввода командой Input]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=149057#p149057" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Дело было в горячей клавише Ctrl+F12, стоящей перед самим циклом.<br />При таком коде MsgBox не выводился:<br /></p><div class="codebox"><pre><code>~^F12::ExitApp
Loop, 
{
	Input, short, V , {sc39}
	MsgBox, Введено: %short%
}</code></pre></div><p>После помещения горячей клавиши после цикла всё заработало:<br /></p><div class="codebox"><pre><code>Loop, 
{
	Input, short, V , {sc39}
	MsgBox, Введено: %short%
}
~^F12::ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[v413ry4nk4]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41375</uri>
			</author>
			<updated>2021-07-23T14:21:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=149057#p149057</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Постоянное ожидание ввода командой Input]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=149056#p149056" />
			<content type="html"><![CDATA[<p>У меня работает:<br /> <br /> <span class="postimg"><img src="https://i.imgur.com/qUR258W.gif" alt="https://i.imgur.com/qUR258W.gif" /></span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-07-23T14:09:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=149056#p149056</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Постоянное ожидание ввода командой Input]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=149055#p149055" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Запустил скрипт с циклом, ввел 3 символа, нажал пробел, MsgBox не создался. При аналогичном скрипте через клавишу F1 срабатывает каждый раз, если перед вводом нажать F1, соответственно.</p>]]></content>
			<author>
				<name><![CDATA[v413ry4nk4]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41375</uri>
			</author>
			<updated>2021-07-23T14:04:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=149055#p149055</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Постоянное ожидание ввода командой Input]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=149054#p149054" />
			<content type="html"><![CDATA[<p>А как именно проверяли?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-07-23T14:02:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=149054#p149054</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Постоянное ожидание ввода командой Input]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=149053#p149053" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Ну, только что проверил ещё раз, MsgBox не выводится.</p>]]></content>
			<author>
				<name><![CDATA[v413ry4nk4]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41375</uri>
			</author>
			<updated>2021-07-23T13:52:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=149053#p149053</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Постоянное ожидание ввода командой Input]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=149052#p149052" />
			<content type="html"><![CDATA[<p>У вас написано L10 и {sc39} как завершающая клавиша. То-есть, код будет ждать либо 10 любых нажатий, либо нажатия {sc39}. Он, вроде, так и работает.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-07-23T13:42:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=149052#p149052</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Постоянное ожидание ввода командой Input]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=149051#p149051" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> <br />Считывать весь мой ввод, после нажатия пробела выполнять MsgBox, после этого снова считывать ввод.</p>]]></content>
			<author>
				<name><![CDATA[v413ry4nk4]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41375</uri>
			</author>
			<updated>2021-07-23T13:35:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=149051#p149051</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Постоянное ожидание ввода командой Input]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=149050#p149050" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>v413ry4nk4 пишет:</cite><blockquote><p>С циклом Loop не получилось</p></blockquote></div><p>А какого поведения вы ожидаете от этого кода?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-07-23T13:24:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=149050#p149050</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Постоянное ожидание ввода командой Input]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=149049#p149049" />
			<content type="html"><![CDATA[<p>Здравствуйте, дорогие форумчане. Пишу скрипт, который подразумевает постоянное ожидание ввода командой Input для дальнейшей обработки, но у меня получилось реализовать это только запуском горячей клавишей F1:<br /></p><div class="codebox"><pre><code>Process, Priority, , High

#NoEnv
#InstallKeybdHook

SetKeyDelay -1
SetBatchLines, -1

Thread, interrupt, 0

~^F12::ExitApp

F1::
	Input, short, L10 V , {sc39}
	MsgBox, Введено: %short%
Return</code></pre></div><p>С циклом Loop не получилось:<br /></p><div class="codebox"><pre><code>Loop, 
{
	Input, short, L10 V , {sc39}
	MsgBox, Введено: %short%
}</code></pre></div><p>Так же пытался создать таймер, реакции никакой:<br /></p><div class="codebox"><pre><code>SetTimer, forSwitch, 10

forSwitch:
	Input, short, L10 V , {sc39}
	MsgBox, Введено: %short%
Return</code></pre></div><p>Разъясните, пожалуйста, что я упустил и делал не так.</p>]]></content>
			<author>
				<name><![CDATA[v413ry4nk4]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41375</uri>
			</author>
			<updated>2021-07-23T12:41:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=149049#p149049</id>
		</entry>
</feed>
