<?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="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15807&amp;type=atom" />
	<updated>2020-11-06T15:01:08Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15807</id>
		<entry>
			<title type="html"><![CDATA[Re: Запись в документ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143257#p143257" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>AlexPidor пишет:</cite><blockquote><p>Только вот нумерацию он почему-то не с 1 начинает а с пустого места. можно как-то это исправить?</p></blockquote></div><p> а куда вы поместили &quot;counter := 1&quot;? Именно эта строчка и отвечает за то чтобы нумерация начиналась с 1.<br /></p><div class="quotebox"><cite>AlexPidor пишет:</cite><blockquote><p>И еще через точку записать такой формат: 1.1, 1.2, 1.3 и прочее чтобы префикс был, а после нажатия определённой клавиши префикс менялся на новый, а счётчик обнулсля<br />К примеру shift+1 обнуление а просто 1 запись</p></blockquote></div><p>Ну так сделайте еще одну переменную которую будете увеличивать нажатием нужной вам комбинации (в данном случае shift+1), а вот в переменную counter записывать &quot;1&quot;. Хотя не до конца уверен что понял вашу фразу &quot;К примеру shift+1 обнуление а просто 1 запись&quot;</p>]]></content>
			<author>
				<name><![CDATA[pro100andrik94]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39412</uri>
			</author>
			<updated>2020-11-06T15:01:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143257#p143257</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Запись в документ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143216#p143216" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>pro100andrik94 пишет:</cite><blockquote><p><strong>AlexPidor</strong> потому что запятую в этом случае надо экранировать так же как и вы экранировали &quot;`n&quot;. Почитайте <a href="http://www.script-coding.com/AutoHotkey/EscapeChar.html">документацию</a>.<br /></p><div class="codebox"><pre><code>FileAppend, %counter%`, %a% %b% extc %M%.`n, %A_ScriptDir%\doc.txt</code></pre></div></blockquote></div><p>О спасибо, такое простое решение для такой сложной задачт</p>]]></content>
			<author>
				<name><![CDATA[AlexPidor]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41190</uri>
			</author>
			<updated>2020-11-06T09:45:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143216#p143216</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Запись в документ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143215#p143215" />
			<content type="html"><![CDATA[<p><strong>AlexPidor</strong> потому что запятую в этом случае надо экранировать так же как и вы экранировали &quot;`n&quot;. Почитайте <a href="http://www.script-coding.com/AutoHotkey/EscapeChar.html">документацию</a>.<br /></p><div class="codebox"><pre><code>FileAppend, %counter%`, %a% %b% extc %M%.`n, %A_ScriptDir%\doc.txt</code></pre></div>]]></content>
			<author>
				<name><![CDATA[pro100andrik94]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39412</uri>
			</author>
			<updated>2020-11-06T09:43:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143215#p143215</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Запись в документ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143214#p143214" />
			<content type="html"><![CDATA[<p>А еще когда запятую ставишь %counter%, запить не делается</p>]]></content>
			<author>
				<name><![CDATA[AlexPidor]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41190</uri>
			</author>
			<updated>2020-11-06T09:28:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143214#p143214</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Запись в документ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143212#p143212" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>pro100andrik94 пишет:</cite><blockquote><p><strong>AlexPidor</strong> Как вариант можете использовать такое<br /></p><div class="codebox"><pre><code>counter := 1 						; где-то в начале кода закинуть

Write:
FileAppend, %counter%. %a% %b% extc %M%.`n, %A_ScriptDir%\doc.txt
counter++
return</code></pre></div></blockquote></div><p>О щпасбо</p><p>Только вот нумерацию он почему-то не с 1 начинает а с пустого места. можно как-то это исправить?<br />И еще через точку записать такой формат: 1.1, 1.2, 1.3 и прочее чтобы префикс был, а после нажатия определённой клавиши префикс менялся на новый, а счётчик обнулсля<br />К примеру shift+1 обнуление а просто 1 запись</p>]]></content>
			<author>
				<name><![CDATA[AlexPidor]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41190</uri>
			</author>
			<updated>2020-11-06T08:03:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143212#p143212</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Запись в документ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143209#p143209" />
			<content type="html"><![CDATA[<p><strong>AlexPidor</strong> Как вариант можете использовать такое<br /></p><div class="codebox"><pre><code>counter := 1 						; где-то в начале кода закинуть

Write:
FileAppend, %counter%. %a% %b% extc %M%.`n, %A_ScriptDir%\doc.txt
counter++
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[pro100andrik94]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39412</uri>
			</author>
			<updated>2020-11-06T07:41:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143209#p143209</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Запись в документ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143207#p143207" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p><strong>fgslm</strong></p></blockquote></div><p>И?</p>]]></content>
			<author>
				<name><![CDATA[AlexPidor]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41190</uri>
			</author>
			<updated>2020-11-06T06:41:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143207#p143207</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Запись в документ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143206#p143206" />
			<content type="html"><![CDATA[<p><strong>fgslm</strong></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2020-11-06T06:34:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143206#p143206</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Запись в документ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143204#p143204" />
			<content type="html"><![CDATA[<p>Нумерация в документ со счётчиком как может быть записана в скрипте?<br />Т.е. мне надо не только записать значения текущих переменных а и б <br />т.е. FileAppend, %a% %b% extc %M%.`n, %A_ScriptDir%\doc.txt<br />А еще и пронумеровать в зависимости от количества нажатий с момента старта скрипта<br />чтобы получилось FileAppend, (какой-то счётчик) %a% %b% extc %M%.`n, %A_ScriptDir%\doc.txt<br />а запись вместо а, б, м<br />1. а, б, м<br />4. а, б, м<br />3. а, б, м<br />и т.д.</p>]]></content>
			<author>
				<name><![CDATA[AlexPidor]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41190</uri>
			</author>
			<updated>2020-11-06T05:35:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143204#p143204</id>
		</entry>
</feed>
