<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Удвоение перносов строк в команде Send]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=10138&amp;type=atom" />
	<updated>2014-11-24T12:47:09Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=10138</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удвоение перносов строк в команде Send]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=88633#p88633" />
			<content type="html"><![CDATA[<p>Не смешно, есть русский аналог:<br /><a href="http://forum.script-coding.com/viewtopic.php?pid=27628">bug - ошибка, недочёт</a></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2014-11-24T12:47:09Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=88633#p88633</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удвоение перносов строк в команде Send]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=88629#p88629" />
			<content type="html"><![CDATA[<p>Я бы &quot;жука&quot; заменил на &quot;баг&quot;.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2014-11-24T12:19:02Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=88629#p88629</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удвоение перносов строк в команде Send]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=88625#p88625" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>stealzy</strong>, языком конференции является русский (п. 3.3 Правил). Измените заголовок темы.</span></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2014-11-24T08:55:10Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=88625#p88625</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удвоение перносов строк в команде Send]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=88623#p88623" />
			<content type="html"><![CDATA[<p>Нет, не в юникоде дело оказалось, просто Send вместо `r посылает Enter. Посмотреть можно так:<br />Запускаем код:<br /></p><div class="codebox"><pre><code>#Persistent
Send `r</code></pre></div><p>Кликаем дважды по иконке скрипта в трее, смотрим меню View -&gt; Key history and script info.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-11-24T08:23:30Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=88623#p88623</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удвоение перносов строк в команде Send]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=88622#p88622" />
			<content type="html"><![CDATA[<p>Можно привести все переносы к одному виду:<br /></p><div class="codebox"><pre><code>SendRaw % RegExReplace(Clipboard, &quot;\R&quot;, &quot;`n&quot;)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-11-24T07:48:37Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=88622#p88622</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удвоение перносов строк в команде Send]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=88621#p88621" />
			<content type="html"><![CDATA[<p>Точно, это вина команды Send<br /></p><div class="codebox"><pre><code>SendRaw % Clipboard</code></pre></div><p>Спасибо, тут <a href="http://forum.script-coding.com/viewtopic.php?id=10182">http://forum.script-coding.com/viewtopic.php?id=10182</a><br />та же проблема была.</p><p><span style="color: green">Ссылка оформляется тегом &quot;URL&quot;.</span><br /><span style="color: grey">Извините, у меня userjs автоматом http ссылками делает, забыл</span></p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2014-11-24T07:42:48Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=88621#p88621</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удвоение перносов строк в команде Send]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=88620#p88620" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>stealzy пишет:</cite><blockquote><p>Откуда переносы там появились, чтобы их потом удалять?</p></blockquote></div><p>Так в буфер обмена записывается, AHK здесь не причём, думаю. А <a href="https://ru.wikipedia.org/wiki/%D0%9F%D0%B5%D1%80%D0%B5%D0%B2%D0%BE%D0%B4_%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B8#.D0.A0.D0.B0.D0.B7.D0.BD.D0.B8.D1.86.D0.B0_.D0.BF.D1.80.D0.B5.D0.B4.D1.81.D1.82.D0.B0.D0.B2.D0.BB.D0.B5.D0.BD.D0.B8.D0.B9">юникод воспринимает</a> `r`n как два переноса.<br /></p><div class="quotebox"><blockquote><p>Расскажете как?</p></blockquote></div><p>Вот так:<br /></p><div class="codebox"><pre><code>Loop, parse, Clipboard,, `r
    r .= A_LoopField 

SendRaw % r</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-11-24T07:38:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=88620#p88620</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удвоение перносов строк в команде Send]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=88619#p88619" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>`r</p></blockquote></div><div class="quotebox"><blockquote><p>OmitChars — Необязательный список символов (чувствителен к регистру), которые должны убираться с начала и с конца каждой подстроки</p></blockquote></div><p>Но ведь текст получается как был. Откуда переносы там появились, чтобы их потом удалять?<br />Почему текст в мак(RF) или юникс(CL) формате обрабатывается без костылей?<br />И как мне писать универсальный скрипт? Распозновать в каком формате текст? Расскажете как?</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2014-11-24T07:30:22Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=88619#p88619</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удвоение перносов строк в команде Send]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=88618#p88618" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Loop, parse, Clipboard,, `r
    r .= A_LoopField 

SendRaw % r</code></pre></div><p>А в чём баг-то?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-11-24T07:23:27Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=88618#p88618</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удвоение перносов строк в команде Send]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=88615#p88615" />
			<content type="html"><![CDATA[<p>Окей, проблему решил удалением лишних переносов</p><div class="codebox"><pre><code>text:=Clipboard
Loop, parse,text,`n
{
    r := r . A_LoopField 
}
SendRaw % r
</code></pre></div><p>Но все равно это баг(справку читал). Если файл не в Windows формате, получится ппц.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2014-11-24T06:27:27Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=88615#p88615</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удвоение перносов строк в команде Send]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=88192#p88192" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>stealzy пишет:</cite><blockquote><p>Что делать? Может запостить на английский форум?</p></blockquote></div><p>Справку читать, и примеры использования смотреть.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-11-10T14:31:51Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=88192#p88192</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удвоение перносов строк в команде Send]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=88191#p88191" />
			<content type="html"><![CDATA[<p>Добавить очистку от лишних переносов:<br /></p><div class="codebox"><pre><code>    StringReplace,a,A_LoopField,`n,,all
    r := r . a
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2014-11-10T14:07:03Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=88191#p88191</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Удвоение перносов строк в команде Send]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=88190#p88190" />
			<content type="html"><![CDATA[<p>Скопируйте несколько строк с переносами строки в стиле windows — CL;RF и запустите этот нехитрый скрипт:<br /></p><div class="codebox"><pre><code>text:=Clipboard
Loop, parse,text
{
    r := r . A_LoopField 
}
Send % r</code></pre></div><p>Заметно удвоение переносов.<br />Видимо и CL и RF считаются отдельными переносами, даже если идут друг за другом.<br />Что делать?<br />---------------------------<br />UPD:<br /></p><div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>просто Send вместо `r посылает Enter. Посмотреть можно так:<br />Запускаем код:</p><p>#Persistent<br />Send `r</p><p>Кликаем дважды по иконке скрипта в трее, смотрим меню View -&gt; Key history and script info</p></blockquote></div><div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Loop, parse, Clipboard,, `r<br />&nbsp; &nbsp; r .= A_LoopField </p><p>SendRaw % r</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2014-11-10T13:55:39Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=88190#p88190</id>
		</entry>
</feed>
