<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Ввод текста в txt файл]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15445&amp;type=atom" />
	<updated>2020-07-02T07:13:27Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15445</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод текста в txt файл]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=140521#p140521" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>FileAppend,
(
example text 
), example.txt</code></pre></div>]]></content>
			<author>
				<name><![CDATA[web]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40953</uri>
			</author>
			<updated>2020-07-02T07:13:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=140521#p140521</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод текста в txt файл]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=140154#p140154" />
			<content type="html"><![CDATA[<p>Если хотите отделить из произвольного текста число, то так:<br /></p><div class="codebox"><pre><code>text =
(
текст в файле
здесь моё число: 777
здесь текст
)
MsgBox, % RegExReplace(text, &quot;s).*?(\d+).*&quot;, &quot;$1&quot;)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-06-14T10:27:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=140154#p140154</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод текста в txt файл]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=140153#p140153" />
			<content type="html"><![CDATA[<p>Ну Вы выше написал - Отлично, только RegEx зачем? Если в файле может быть что-то, кроме нужного числа, тогда не сработает, если будет, например, такой текст: Число 1 <br />Как добавить данное слово - Число</p>]]></content>
			<author>
				<name><![CDATA[Tample]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40396</uri>
			</author>
			<updated>2020-06-14T09:58:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=140153#p140153</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод текста в txt файл]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=140152#p140152" />
			<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>2020-06-14T09:45:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=140152#p140152</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод текста в txt файл]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=140151#p140151" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Хм, спасибо за подсказку. Но можете еще подсказать что нужно для того, что бы вывести этот текст - Число один.</p>]]></content>
			<author>
				<name><![CDATA[Tample]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40396</uri>
			</author>
			<updated>2020-06-14T09:08:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=140151#p140151</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод текста в txt файл]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=140136#p140136" />
			<content type="html"><![CDATA[<p>Отлично, только RegEx зачем? Если в файле может быть что-то, кроме нужного числа, тогда не сработает, если будет, например, такой текст:<br /></p><div class="quotebox"><blockquote><p>число 1</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-06-13T15:22:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=140136#p140136</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод текста в txt файл]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=140135#p140135" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Уже догадался как сделать сам <br />Вот решение, вдруг кому-то нужно <br /></p><div class="codebox"><pre><code>File := &quot;counter.txt&quot;
return

!z::
	FileRead, Count, % File
	Count := RegExReplace(Count, &quot;(\d+).*&quot;, &quot;$1&quot;)
	Count := (Count = &quot;&quot; ? 1 : Count + 1)
	FileDelete, % File
	FileAppend, % Count, % File
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Tample]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40396</uri>
			</author>
			<updated>2020-06-13T15:16:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=140135#p140135</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ввод текста в txt файл]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=140134#p140134" />
			<content type="html"><![CDATA[<p><strong>Tample</strong>, опишите, как сами пытались решить задачу, какие трудности возникли.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-06-13T15:03:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=140134#p140134</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Ввод текста в txt файл]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=140133#p140133" />
			<content type="html"><![CDATA[<p>Всех приветствую! Мне нужна помощь в написании скрипта. Какой смысл? Предположим, у меня есть TXT-файл, и, нажав хоткей, пускай будет - !z, цифра - 1 помещается в этот файл, если мы нажмем снова !z, то числа добавляются, и получаются два, и так далее.<br />Пожалуйста, помогите мне, для меня это очень важно. Спасибо за внимание!</p>]]></content>
			<author>
				<name><![CDATA[Tample]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40396</uri>
			</author>
			<updated>2020-06-13T14:11:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=140133#p140133</id>
		</entry>
</feed>
