<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Копирование в буфер исх. кода выделенного фрагмента веб-страницы]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=9515</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=9515&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Копирование в буфер исх. кода выделенного фрагмента веб-страницы».]]></description>
		<lastBuildDate>Thu, 13 Apr 2017 17:56:07 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Копирование в буфер исх. кода выделенного фрагмента веб-страницы]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=115048#p115048</link>
			<description><![CDATA[<p>Идея классная. Сразу бросился проверять. По факту оказалось, что при копировании текста в буфер обмена, каждый браузер поступает по своему:<br />MSHTA, Internet Explorer, Edge тащат в буфер обмена таблицу стилей (которая, правда, остается вне меток &lt;!--StartFragment--&gt;&lt;!--EndFragment--&gt;). Вероятно для того, чтобы продвинутые приемники содержимого буфера (Word например) могли отобразить форматирование исходного текста.<br />Chrome, так же пытаясь обеспечить видимое соответствие, напихивает в исходный html столько дополнительных атрибутов что &quot;мама не горюй&quot;.<br />Только FireFox передает выделенный html почти без искажений, ничего не добавляя и не убирая.<br />Opera вообще убивает все теги и передает в буфер только текст.<br />В общем, получается что данный способ получения html кода выделенного фрагмента можно использовать далеко не со всеми браузерами и доверять тому что полученный фрагмент 1:1 соответствует коду страницы не стоит.<br />Все перечисленные моменты не говорят о том, что идея - плоха, просто использовать её надо учитывая эти особенности.<br />Например, для сохранения выбранных фрагментов страниц для последующего чтения, она пойдет &quot;на ура&quot;.</p><p>Чтобы не быть голословным, прицепляю результаты.</p>]]></description>
			<author><![CDATA[null@example.com (mozers)]]></author>
			<pubDate>Thu, 13 Apr 2017 17:56:07 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=115048#p115048</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Копирование в буфер исх. кода выделенного фрагмента веб-страницы]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=82555#p82555</link>
			<description><![CDATA[<p>И добавляется это в начале:<br /></p><div class="codebox"><pre><code>&lt;div class=&quot;main-head&quot;&gt;
        &lt;h2 class=&quot;hn&quot;&gt;</code></pre></div><p>И это в конце:<br /></p><div class="codebox"><pre><code>&lt;/a&gt;&lt;/h3&gt;
            &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Fri, 02 May 2014 10:49:09 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=82555#p82555</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Копирование в буфер исх. кода выделенного фрагмента веб-страницы]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=82550#p82550</link>
			<description><![CDATA[<p>Ага, причём даже инфо есть, где вырезать без ошибочно.<br /></p><div class="codebox"><pre><code>
ClipGetData(html, &quot;HTML Format&quot;, 1)
html := StrGet(&amp;html, &quot;utf-8&quot;)
regexmatch(html, &quot;.*?StartHTML:0*(.*?)\REndHTML:0*(.*?)\R&quot;, Pos)
MsgBox, % SubStr(html, Pos1, Pos2)
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Fri, 02 May 2014 06:21:54 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=82550#p82550</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Копирование в буфер исх. кода выделенного фрагмента веб-страницы]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=82549#p82549</link>
			<description><![CDATA[<p>В вашем-то примере почему не вариант? Взять то, что между StartFragment и EndFragment.</p>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Fri, 02 May 2014 04:45:58 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=82549#p82549</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Копирование в буфер исх. кода выделенного фрагмента веб-страницы]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=82548#p82548</link>
			<description><![CDATA[<p>Да я знаю. <br />Не так сформулировал.<br />Так что использовать данную фичу броузера - не вариант.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Fri, 02 May 2014 04:36:30 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=82548#p82548</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Копирование в буфер исх. кода выделенного фрагмента веб-страницы]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=82547#p82547</link>
			<description><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Криво скрипт копирует.</p></blockquote></div><p>Чё? Вы второй пост читали? Копирует в буфер ПРИЛОЖЕНИЕ, а не скрипт. Скрипт просто извлекает из буфера указанный формат. Что туда браузер положил в этом формате, то и будет извлечено.</p>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Fri, 02 May 2014 02:37:05 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=82547#p82547</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Копирование в буфер исх. кода выделенного фрагмента веб-страницы]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=82546#p82546</link>
			<description><![CDATA[<p>Криво скрипт копирует.<br />Например я выделяю на главной странице форума текст от &quot;Общение&quot; до &quot;Важная информация&quot;<br />Через view selection source имеем:<br /></p><div class="codebox"><pre><code>&lt;span&gt;Общение&lt;/span&gt;&lt;/h2&gt;
    &lt;/div&gt;
    &lt;div class=&quot;main-subhead&quot;&gt;
        &lt;p class=&quot;item-summary&quot;&gt;&lt;span&gt;&lt;strong class=&quot;subject-title&quot;&gt;Форум&lt;/strong&gt; в этой категории с подробностями про &lt;strong class=&quot;info-topics&quot;&gt;темы&lt;/strong&gt;, &lt;strong class=&quot;info-posts&quot;&gt;сообщения&lt;/strong&gt;, &lt;strong class=&quot;info-lastpost&quot;&gt;последнее сообщение&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
    &lt;/div&gt;
    &lt;div id=&quot;category1&quot; class=&quot;main-content main-category&quot;&gt;
        &lt;div id=&quot;forum25&quot; class=&quot;main-item odd main-first-item&quot;&gt;
            &lt;span class=&quot;icon &quot;&gt;&lt;!-- --&gt;&lt;/span&gt;
            &lt;div class=&quot;item-subject&quot;&gt;
                &lt;h3 class=&quot;hn&quot;&gt;&lt;a href=&quot;http://forum.script-coding.com/viewforum.php?id=25&quot;&gt;&lt;span&gt;Важная информация&lt;/span&gt;</code></pre></div><p>А через скрипт:<br /></p><div class="codebox"><pre><code>Version:0.9
StartHTML:00000149
EndHTML:00001023
StartFragment:00000183
EndFragment:00000987
SourceURL:http://forum.script-coding.com/index.php
&lt;html&gt;&lt;body&gt;
&lt;!--StartFragment--&gt;&lt;div class=&quot;main-head&quot;&gt;
        &lt;h2 class=&quot;hn&quot;&gt;&lt;span&gt;Общение&lt;/span&gt;&lt;/h2&gt;
    &lt;/div&gt;
    &lt;div class=&quot;main-subhead&quot;&gt;
        &lt;p class=&quot;item-summary&quot;&gt;&lt;span&gt;&lt;strong class=&quot;subject-title&quot;&gt;Форум&lt;/strong&gt; в этой категории с подробностями про &lt;strong class=&quot;info-topics&quot;&gt;темы&lt;/strong&gt;, &lt;strong class=&quot;info-posts&quot;&gt;сообщения&lt;/strong&gt;, &lt;strong class=&quot;info-lastpost&quot;&gt;последнее сообщение&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
    &lt;/div&gt;
    &lt;div id=&quot;category1&quot; class=&quot;main-content main-category&quot;&gt;
        &lt;div id=&quot;forum25&quot; class=&quot;main-item odd main-first-item&quot;&gt;
            &lt;span class=&quot;icon &quot;&gt;&lt;/span&gt;
            &lt;div class=&quot;item-subject&quot;&gt;
                &lt;h3 class=&quot;hn&quot;&gt;&lt;a href=&quot;http://forum.script-coding.com/viewforum.php?id=25&quot;&gt;&lt;span&gt;Важная информация&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
            &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;!--EndFragment--&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Thu, 01 May 2014 23:28:15 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=82546#p82546</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Копирование в буфер исх. кода выделенного фрагмента веб-страницы]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=82332#p82332</link>
			<description><![CDATA[<p>Без понятия.</p>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Sun, 27 Apr 2014 02:45:47 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=82332#p82332</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Копирование в буфер исх. кода выделенного фрагмента веб-страницы]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=82330#p82330</link>
			<description><![CDATA[<p>А как содержимое зеарцых бокса до кучи копировать в том же клике что и копирование сниппета?</p>]]></description>
			<author><![CDATA[null@example.com (Доктор ТуамОсес)]]></author>
			<pubDate>Sat, 26 Apr 2014 22:02:23 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=82330#p82330</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Копирование в буфер исх. кода выделенного фрагмента веб-страницы]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=82229#p82229</link>
			<description><![CDATA[<div class="quotebox"><cite>DD пишет:</cite><blockquote><p>А чего-то он в Опере не работает, ведь Фаерфокс в нем не оговорен?</p></blockquote></div><p>У меня работает, когда копирую из Оперы. Браузер ему по барабану, ему нужен формат &quot;HTML Format&quot; в буфере обмена. У меня Опера его туда помещает.</p>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Thu, 24 Apr 2014 02:17:11 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=82229#p82229</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Копирование в буфер исх. кода выделенного фрагмента веб-страницы]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=82226#p82226</link>
			<description><![CDATA[<div class="quotebox"><cite>YMP пишет:</cite><blockquote><p>Скопируйте что-нибудь в Фаерфоксе и попробуйте извлечь HTML вот таким кодом:</p></blockquote></div><p>А чего-то он в Опере не работает, ведь Фаерфокс в нем не оговорен?</p>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Wed, 23 Apr 2014 21:23:06 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=82226#p82226</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Копирование в буфер исх. кода выделенного фрагмента веб-страницы]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=82182#p82182</link>
			<description><![CDATA[<div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p>А зачем Вы за мной повсюду ходите?</p></div></div>]]></description>
			<author><![CDATA[null@example.com (Доктор ТуамОсес)]]></author>
			<pubDate>Wed, 23 Apr 2014 14:32:02 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=82182#p82182</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Копирование в буфер исх. кода выделенного фрагмента веб-страницы]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=82165#p82165</link>
			<description><![CDATA[<div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;Offtopic ТуамОсес</div><div class="fancy_spoiler"><p>ТуамОсес, куда не зайду - повсюду твои вопросы. И на handycache, и на ru-boarde, и тут, я что-то упустил?:D</p></div></div>]]></description>
			<author><![CDATA[null@example.com (stealzy)]]></author>
			<pubDate>Wed, 23 Apr 2014 07:13:35 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=82165#p82165</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Копирование в буфер исх. кода выделенного фрагмента веб-страницы]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=82085#p82085</link>
			<description><![CDATA[<p>Ладно. Пока буду выдирать поисковый запрос из URL яндекс-страницы</p>]]></description>
			<author><![CDATA[null@example.com (Доктор ТуамОсес)]]></author>
			<pubDate>Mon, 21 Apr 2014 08:08:15 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=82085#p82085</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Копирование в буфер исх. кода выделенного фрагмента веб-страницы]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=82082#p82082</link>
			<description><![CDATA[<p>Не знаю, я этим не озадачивался никогда.</p>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Mon, 21 Apr 2014 07:43:34 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=82082#p82082</guid>
		</item>
	</channel>
</rss>
