<?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=18132&amp;type=atom" />
	<updated>2024-03-14T06:03:05Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=18132</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Изменение переменной и сохранение в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160547#p160547" />
			<content type="html"><![CDATA[<p><strong>rive.er.mullen.t.m.p</strong>, ознакомьтесь, пожалуйста, с <a href="https://forum.script-coding.com/misc.php?action=rules">Правилами</a>, отредактируйте свой пост. Обратите внимание на <a href="https://forum.script-coding.com/misc.php?action=rules#literacy">точки</a> в конце предложений.<br />Более подробное, чем что?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-03-14T06:03:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160547#p160547</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Изменение переменной и сохранение в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160546#p160546" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Попробуйте так:</p></blockquote></div><p>Спасибо огромное, все отлично работает, подправил под себя.<br />А есть более подробное описание RegExReplace, я знал что она мне должна была помочь, но не смог понять как ей полностью воспользоваться.</p>]]></content>
			<author>
				<name><![CDATA[rive.er.mullen.t.m.p]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42330</uri>
			</author>
			<updated>2024-03-14T05:52:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160546#p160546</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Изменение переменной и сохранение в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160542#p160542" />
			<content type="html"><![CDATA[<p>Попробуйте так:<br /></p><div class="codebox"><pre><code>filePath := A_Desktop . &quot;\test.txt&quot;
myVar := &quot;1234567890-123.4567&quot;

FileRead, text, % filePath
FileDelete, % filePath

newVar := RegExReplace(myVar, &quot;\.\d+$&quot;)
newText := RegExReplace(text, &quot;m`a)ProductVersion = \K.*$&quot;, newVar)
FileAppend, % newText, % filePath</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-03-13T14:24:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160542#p160542</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Изменение переменной и сохранение в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160540#p160540" />
			<content type="html"><![CDATA[<p>Здравствуйте, имеется переменная, нужно удалить ненужные символы после точки, пример:<br /></p><div class="quotebox"><blockquote><p>Исходное: 1234567890-123.4567<br />Результат: 1234567890-123</p></blockquote></div><p>само значение меняется, но в нём только цифры, после чего нужно сохранить результат в файл, в котором имеется строка (ProductVersion = ) после нее удалить/заменить на получившееся значение.<br />Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[rive.er.mullen.t.m.p]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42330</uri>
			</author>
			<updated>2024-03-12T21:33:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160540#p160540</id>
		</entry>
</feed>
