<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Странное поведение StringReplace]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11696&amp;type=atom" />
	<updated>2016-06-09T00:14:30Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11696</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Странное поведение StringReplace]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105005#p105005" />
			<content type="html"><![CDATA[<p>Не за что, только цитировать посты полностью <a href="http://forum.script-coding.com/viewtopic.php?id=6148">не надо</a>.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-06-09T00:14:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105005#p105005</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Странное поведение StringReplace]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105004#p105004" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Строчка не всегда заканчивается CR+LF. Иногда просто LF.<br />Универсальный вариант:<br /></p><div class="codebox"><pre><code>Clipboard := RegExReplace(Clipboard, &quot;\R&quot;)</code></pre></div></blockquote></div><p>Тоже работает! Спасибо!</p>]]></content>
			<author>
				<name><![CDATA[estenha]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33963</uri>
			</author>
			<updated>2016-06-08T23:56:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105004#p105004</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Странное поведение StringReplace]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105003#p105003" />
			<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>2016-06-08T23:54:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105003#p105003</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Странное поведение StringReplace]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105002#p105002" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>А если так, тоже не работает?<br />...<br />или:</p><div class="codebox"><pre><code>String := Clipboard
StringReplace, String, String, `r, , All
StringReplace, String, String, `n, , All 
StringReplace, String, String, `r`n, , All 
Clipboard := String</code></pre></div></blockquote></div><p>Работает! Спасибо!</p>]]></content>
			<author>
				<name><![CDATA[estenha]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33963</uri>
			</author>
			<updated>2016-06-08T23:47:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105002#p105002</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Странное поведение StringReplace]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105001#p105001" />
			<content type="html"><![CDATA[<p>Строчка не всегда заканчивается CR+LF. Иногда просто LF.<br />Универсальный вариант:<br /></p><div class="codebox"><pre><code>Clipboard := RegExReplace(Clipboard, &quot;\R&quot;)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-06-08T23:19:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105001#p105001</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Странное поведение StringReplace]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105000#p105000" />
			<content type="html"><![CDATA[<p>А если так, тоже не работает?<br /></p><div class="codebox"><pre><code>StringReplace, Clipboard, Clipboard, `r, , All
StringReplace, Clipboard, Clipboard, `n, , All 
StringReplace, Clipboard, Clipboard, `r`n, , All </code></pre></div><p>или:</p><div class="codebox"><pre><code>String := Clipboard
StringReplace, String, String, `r, , All
StringReplace, String, String, `n, , All 
StringReplace, String, String, `r`n, , All 
Clipboard := String</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2016-06-08T23:17:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105000#p105000</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Странное поведение StringReplace]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104998#p104998" />
			<content type="html"><![CDATA[<p>Доброго времени суток!<br />В скрипте использую команду <strong>StringReplace, Clipboard, Clipboard, `r`n, , All</strong> (та, которая в справке AHK)<br />Копирование данных в буфер происходит из контекстного меню командой &quot;Копировать внутренний HTML&quot; (дело происходит в Инспекторе Firefox&#039;а), затем выполняется <strong>StringReplace, Clipboard, Clipboard, `r`n, , All</strong>, но CR+LF не удаляются. Если после того, как выполнить &quot;Копировать внутренний HTML&quot;, затем открыть, например, Блокнот, вставить туда из буфера по CTRL-V данные, выделить (CTRL-A) и скопировать (CTRL-C), а затем применить <strong>StringReplace, Clipboard, Clipboard, `r`n, , All</strong>, то CR+LF удаляются (собственно, этот &quot;костыль&quot; и был реализован в скрипте), но... вопрос - копирование в буфер через контекстное меню чем-то отличается от стандартного копирования по CTRL-C ?! Или я что-то упускаю?</p><p>Проделывал эксперимент вручную - &quot;мышкой&quot; правая кнопка, контекстное меню, &quot;Копировать внутренний HTML&quot;, затем запускал скрипт с единственной строкой <strong>StringReplace, Clipboard, Clipboard, `r`n, , All</strong> - отрицательный результат, тут же открывал Блокнот, вставлял данные, копировал, опять выполнял скрипт, вставлял данные сюда же в Блокнот - все переводы строк удалены.</p>]]></content>
			<author>
				<name><![CDATA[estenha]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33963</uri>
			</author>
			<updated>2016-06-08T22:37:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104998#p104998</id>
		</entry>
</feed>
