<?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=17457&amp;type=atom" />
	<updated>2022-11-12T13:25:33Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17457</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт-логгер]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155643#p155643" />
			<content type="html"><![CDATA[<p>Но это же не проблема читающих ваш код.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2022-11-12T13:25:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155643#p155643</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт-логгер]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155632#p155632" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong><br />Есть такая вспомогательная программа &#039;Quick Converter V2&#039;, в которой окно поделено на два редактора.<br />Там не шибко раскрутишься по рабочей области, если будешь делать отступы, зато на нём легко быстро конвертировать готовый код, либо написать на AHK V1, под вторую версию.</p>]]></content>
			<author>
				<name><![CDATA[Clannad5]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39853</uri>
			</author>
			<updated>2022-11-12T07:55:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155632#p155632</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт-логгер]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155627#p155627" />
			<content type="html"><![CDATA[<p><strong>Clannad5</strong>, а чего вы отступы в коде не используете, ведь читать неудобно.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2022-11-11T23:20:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155627#p155627</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт-логгер]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155626#p155626" />
			<content type="html"><![CDATA[<p><strong>Clannad5</strong></p><p>Ваш код хоть выполняет задуманное, но совершенно не оптимален.<br />Я предпочитаю подобный скрипт:</p><div class="codebox"><pre><code>#SingleInstance Force
#NoEnv
#KeyHistory 0
ListLines, Off
SetBatchLines -1
Menu, Tray, NoStandard
Menu, Tray, Add, Выход, Exit
Set := SubStr(A_ScriptName, 1, -4) . &quot;.ini&quot;
IniRead, LKM, % Set, Key, LKM, 0	; Прочесть кол-во нажатий из файла.
OnExit, Exit	; При завершении скрипта выполнить метку.
Return

Exit:	; Сохранить кол-во нажатий ЛКМ в файл.
IniWrite, % LKM, % Set, Key, LKM
ExitApp
Return

~*vk1:: LKM++</code></pre></div>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2022-11-11T22:57:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155626#p155626</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт-логгер]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155593#p155593" />
			<content type="html"><![CDATA[<p><strong>Arenbiker</strong>, если я правильно вас понял:<br /></p><div class="codebox"><pre><code>
LB := 0
LButton::
{
If A_ThisHotkey = LButton ; в данном примере можно и без этого.
{
SendInput {LButton Down}
KeyWait, LButton, U
SendInput {LButton Up}
LB++
FileDelete, C:\LButtonLog.txt
FileAppEnd, %LB%, C:\LButtonLog.txt
}
}
</code></pre></div><p>Либо можно еще так:<br /></p><div class="codebox"><pre><code>LB := 0
LButton::
{
If A_ThisHotkey = LButton ; в данном примере можно и без этого.
{
SendInput {LButton Down} 
KeyWait, LButton, U
SendInput {LButton Up}
LB++
SetTimer, End, 1000
}
}
return

End:
FileDelete, C:\LButtonLog.txt
FileAppEnd, %LB%, C:\LButtonLog.txt
SetTimer, End, Off
return</code></pre></div><p>Пересоздание лога происходит только после односекундной паузы.</p>]]></content>
			<author>
				<name><![CDATA[Clannad5]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39853</uri>
			</author>
			<updated>2022-11-11T08:21:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155593#p155593</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт-логгер]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155583#p155583" />
			<content type="html"><![CDATA[<p>Ваши наработки?</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2022-11-10T16:06:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155583#p155583</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Скрипт-логгер]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155572#p155572" />
			<content type="html"><![CDATA[<p>Доброго дня, форумчане. Требуется написать программу, которая будет логировать кол-во нажатий ЛКМ в текстовый файл. Пробовал делать через переменную и цикл, но число не обновляется. Так-же пробовал использовать GetKeyState, но запорол код) Я чайник, не судите строго, жду ваших решений!</p>]]></content>
			<author>
				<name><![CDATA[arenbiker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42830</uri>
			</author>
			<updated>2022-11-10T09:08:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155572#p155572</id>
		</entry>
</feed>
