<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Сохранение нажатых клавиш в ini файл.]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=16564&amp;type=atom" />
	<updated>2021-08-30T18:29:13Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=16564</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение нажатых клавиш в ini файл.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149418#p149418" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> Спасибо❤</p>]]></content>
			<author>
				<name><![CDATA[Q1x]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41614</uri>
			</author>
			<updated>2021-08-30T18:29:13Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149418#p149418</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение нажатых клавиш в ini файл.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149411#p149411" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Hook := InputHook(&quot;V&quot;)
Hook.KeyOpt(&quot;{All}&quot;, &quot;N&quot;)
Hook.OnKeyDown := Func(&quot;OnKeyDown&quot;)
Hook.OnKeyUp := Func(&quot;OnKeyUp&quot;)
Hook.Start()
Return

OnKeyDown(hook, vk, sc) {
   ToolTip % &quot;Нажата клавиша: &quot; . GetKeyName( Format(&quot;vk{:x}sc{:x}&quot;, vk, sc) )
}

OnKeyUp(hook, vk, sc) {
   ToolTip % &quot;Отпущена клавиша: &quot; . GetKeyName( Format(&quot;vk{:x}sc{:x}&quot;, vk, sc) )
}</code></pre></div><p>Дальше сами думайте.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-08-30T12:57:13Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149411#p149411</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение нажатых клавиш в ini файл.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149399#p149399" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />InputHook()<br />Не совсем понимаю, как можно реализовать.<br />Вот, что получилось...<br /></p><div class="codebox"><pre><code>a:=InputHook(&quot;vk41&quot;)
a.Start()
a.Wait()
MsgBox % A_TimeSinceThisHotkey</code></pre></div><p>Можно, пожалуйста, пример.</p>]]></content>
			<author>
				<name><![CDATA[Q1x]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41614</uri>
			</author>
			<updated>2021-08-30T02:01:20Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149399#p149399</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение нажатых клавиш в ini файл.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149398#p149398" />
			<content type="html"><![CDATA[<p>Так не получится, если таким образом назначить все клавиши, то не будет срабатывать, когда одновременно нажаты две клавиши.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-08-30T01:42:30Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149398#p149398</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение нажатых клавиш в ini файл.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149397#p149397" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>InputHook()</p></blockquote></div><p> Есть способ, проще?<br /></p><div class="codebox"><pre><code>
    KeyWait, r
    MsgBox % A_TimeSinceThisHotkey
    </code></pre></div><p>Сценарий, таков. Нажатие клавиши, счетчик. Запись в лог.<br />Примерно так, должен выглядеть лог файл:<br />r 1943<br />или так<br />r <br />4432<br />и т д</p>]]></content>
			<author>
				<name><![CDATA[Q1x]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41614</uri>
			</author>
			<updated>2021-08-30T01:15:50Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149397#p149397</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение нажатых клавиш в ini файл.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149390#p149390" />
			<content type="html"><![CDATA[<p>Смотрите InputHook().</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-08-30T00:11:07Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149390#p149390</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Сохранение нажатых клавиш в ini файл.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149385#p149385" />
			<content type="html"><![CDATA[<p>Здравствуйте!<br />Искал, на просторах интерната, запись клавиш и сколько времени была нажата, та или иная клавиша + запись в ini.<br />По итогу, нашёл, это <a href="http://forum.script-coding.com/viewtopic.php?id=8432">http://forum.script-coding.com/viewtopic.php?id=8432</a><br />Меня, он устраивает, но там нет записи времени нажатия клавиши. <br />Помогите, пожалуйста, найти полезный источник информации или пример кода. Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[Q1x]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41614</uri>
			</author>
			<updated>2021-08-29T23:30:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149385#p149385</id>
		</entry>
</feed>
