<?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=6114&amp;type=atom" />
	<updated>2011-08-14T06:46:31Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6114</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Замена фразы в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50630#p50630" />
			<content type="html"><![CDATA[<p>to DD<br />О, теперь все работает, спасибо большое.</p>]]></content>
			<author>
				<name><![CDATA[ilya20069]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26683</uri>
			</author>
			<updated>2011-08-14T06:46:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50630#p50630</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Замена фразы в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50626#p50626" />
			<content type="html"><![CDATA[<p>Мои русские живёхоньки.<br />Выполни вот такой reg-файл (перезагрузка нужна):</p><div class="codebox"><pre><code>Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage]
&quot;1250&quot;=&quot;c_1251.nls&quot;
&quot;1251&quot;=&quot;c_1251.nls&quot;
&quot;1252&quot;=&quot;c_1251.nls&quot;
&quot;1253&quot;=&quot;c_1251.nls&quot;</code></pre></div><p>Он ядрёный, должен пронять.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2011-08-13T18:46:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50626#p50626</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Замена фразы в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50624#p50624" />
			<content type="html"><![CDATA[<p>to DD<br />русские буквы дохнут...</p><p>&gt;Поиск --&gt; Замена как раз для таких случаев</p><p>Помогло...<br />Блин, два дня мучался, когда под рукой все было...</p>]]></content>
			<author>
				<name><![CDATA[ilya20069]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26683</uri>
			</author>
			<updated>2011-08-13T18:12:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50624#p50624</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Замена фразы в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50623#p50623" />
			<content type="html"><![CDATA[<p>А <strong>э</strong>так:<br /></p><div class="codebox"><pre><code>#SingleInstance Force

FileRead, Var, C:\work.txt

Loop
{
  StringReplace, Var, Var, D:\Test.txt, `%logpath`%, All
    If ErrorLevel = 0  ; No more replacements needed.
      Break
}

FileAppend %Var%, C:\%A_Now% ok.txt
Run C:\%A_Now% ok.txt
return</code></pre></div><div class="quotebox"><cite>ilya20069 пишет:</cite><blockquote><p>главное не вручную</p></blockquote></div><p><em>Поиск --&gt; Замена</em> как раз для таких случаев</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2011-08-13T17:50:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50623#p50623</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Замена фразы в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50596#p50596" />
			<content type="html"><![CDATA[<p>Оригинальный пример работает прекрасно.<br />А у меня в clipboard не лезет текст грит:Error at line 4, Continuation is too long, Program will exit<br />---------<br />Если впихнуть только половину то тоже все нормально... собственно возникает вопрос максимального кол-ва знаков в ClipBoard..<br />---------<br />не только ClipBoard но и любая другая переменная не тянет все 1000 строчек..</p>]]></content>
			<author>
				<name><![CDATA[ilya20069]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26683</uri>
			</author>
			<updated>2011-08-13T10:51:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50596#p50596</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Замена фразы в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50587#p50587" />
			<content type="html"><![CDATA[<p>У меня сработал:</p><div class="codebox"><pre><code>#SingleInstance Force
#Persistent

clipboard =
(
D:\Test.txt
D:\Test.txt
D:\Test.txt
D:\Test.txt
D:\Test.txt
D:\Test.txt
авровеглвед
D:\Test.txt
D:\Test.txt
)

  Loop
  {
    StringReplace, clipboard, clipboard, D:\Test.txt, `%logpath`%, All
      If ErrorLevel = 0  ; No more replacements needed.
        Break
  }

  MsgBox, % clipboard
  return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2011-08-12T23:08:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50587#p50587</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Замена фразы в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50586#p50586" />
			<content type="html"><![CDATA[<p>Приветствую, есть текстовый файл размером 20kb и over 1000 строк (он темой ниже выложен) задача заменить все D:\Test.txt (около 240 раз) на %logpath%. Неважно каким образом главное не вручную.<br />Пробовал так:</p><div class="codebox"><pre><code>StringReplace, clipboard, clipboard, D:\Test.txt, `%logpath`%, All</code></pre></div><p>Но, замены не происходит только удаление всех D:\Test.txt, + русские буквы не переживают и превращаются в абракадабру <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[ilya20069]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26683</uri>
			</author>
			<updated>2011-08-12T22:35:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50586#p50586</id>
		</entry>
</feed>
