<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Прошу помощи в написание скрипта для HTML правки <тегов>]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=16126</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16126&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Прошу помощи в написание скрипта для HTML правки <тегов>».]]></description>
		<lastBuildDate>Fri, 26 Feb 2021 10:57:36 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Прошу помощи в написание скрипта для HTML правки <тегов>]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146523#p146523</link>
			<description><![CDATA[<p><strong>teadrinker</strong><br />Да понял тебя.</p>]]></description>
			<author><![CDATA[null@example.com (edea28_)]]></author>
			<pubDate>Fri, 26 Feb 2021 10:57:36 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146523#p146523</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прошу помощи в написание скрипта для HTML правки <тегов>]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146522#p146522</link>
			<description><![CDATA[<p>А как в справке?</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Fri, 26 Feb 2021 10:56:06 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146522#p146522</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прошу помощи в написание скрипта для HTML правки <тегов>]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146521#p146521</link>
			<description><![CDATA[<p><strong>teadrinker</strong><br />Блин, а как?(</p>]]></description>
			<author><![CDATA[null@example.com (edea28_)]]></author>
			<pubDate>Fri, 26 Feb 2021 10:44:30 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146521#p146521</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прошу помощи в написание скрипта для HTML правки <тегов>]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146520#p146520</link>
			<description><![CDATA[<p>Нет.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Fri, 26 Feb 2021 10:33:51 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146520#p146520</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прошу помощи в написание скрипта для HTML правки <тегов>]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146519#p146519</link>
			<description><![CDATA[<p><strong>teadrinker</strong><br />Как то так?<br /></p><div class="codebox"><pre><code>
StringReplace, ClipBoard, ClipBoard, StrReplace(&quot;,&quot;),;, All 
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (edea28_)]]></author>
			<pubDate>Fri, 26 Feb 2021 10:30:51 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146519#p146519</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прошу помощи в написание скрипта для HTML правки <тегов>]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146518#p146518</link>
			<description><![CDATA[<p>Запятую можно экранировать знаком акцента: `,<br />Лучше использовать StrReplace(), все литералы в кавычках.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Fri, 26 Feb 2021 10:23:54 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146518#p146518</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прошу помощи в написание скрипта для HTML правки <тегов>]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146517#p146517</link>
			<description><![CDATA[<p><strong>teadrinker</strong><br />Спасибо огромное!<br />У меня еще один маленький вопрос.</p><br /><p>StringReplace, ClipBoard, ClipBoard, <strong><span style="color: red">.</span></strong>,;, All<br />StringReplace, ClipBoard, ClipBoard, <strong><span style="color: red">,</span></strong>,;, All<br />Это скрипт меняет точку&quot;.&quot; на точку с запятой &quot;;&quot;<br />Но запятую &quot;,&quot; на точку с запятой &quot;;&quot; ведают ошибку при запуске.<br />Можно как то подправить ?</p>]]></description>
			<author><![CDATA[null@example.com (edea28_)]]></author>
			<pubDate>Fri, 26 Feb 2021 10:18:11 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146517#p146517</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прошу помощи в написание скрипта для HTML правки <тегов>]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146516#p146516</link>
			<description><![CDATA[<p>Литеральные кавычки нужно удваивать:<br /></p><div class="codebox"><pre><code>RegExReplace(Clipboard, &quot;s)&lt;table border=&quot;&quot;2&quot;&quot;&gt;.*?&lt;/table&gt;\R?&quot;)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Fri, 26 Feb 2021 09:58:24 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146516#p146516</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прошу помощи в написание скрипта для HTML правки <тегов>]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146515#p146515</link>
			<description><![CDATA[<p>Исправил это так.<br /></p><div class="codebox"><pre><code>
^vkA4::
SetBatchLines, -1
ClipBoard =
SendInput, ^{vk41}^{vk43}    ;  ctrl+A crl+C
ClipWait, 2
if ErrorLevel
{
   MsgBox, Буфер обмена пуст!
   Return
 }   
StringReplace, ClipBoard, ClipBoard, &lt;table border=&quot;2&quot;&gt;,&lt;tablez&gt;, All 
MyVar = %clipboard%
Clipboard := RegExReplace(Clipboard, &quot;s)&lt;tablez&gt;.*?&lt;/table&gt;\R?&quot;)
SendInput, ^{vk56}     ;  ctrl+V
return

</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (edea28_)]]></author>
			<pubDate>Fri, 26 Feb 2021 09:35:37 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146515#p146515</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прошу помощи в написание скрипта для HTML правки <тегов>]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146514#p146514</link>
			<description><![CDATA[<p><strong>teadrinker</strong><br />Получилось все! Но я попробовал поменять тег</p><p>&lt;table&gt;&lt;/table&gt;<br />на<br />&lt;table border=<strong>&quot;2&quot;</strong>&gt; &lt;/table&gt; <br />И мне выдает ошибку и ругается про двойку и &quot;&quot;<br />Можно это исправить?</p><br /><div class="codebox"><pre><code> 
vk9::
SetBatchLines, -1
ClipBoard =
SendInput, ^{vk41}^{vk43}    ;  ctrl+A crl+C
ClipWait, 2
if ErrorLevel
{
   MsgBox, Буфер обмена пуст!
   Return
 }   
MyVar = %clipboard%
Clipboard := RegExReplace(Clipboard, &quot;s)&lt;table border=&quot;2&quot;&gt;.*?&lt;/table&gt;\R?&quot;)
SendInput, ^{vk56}     ;  ctrl+V
return
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (edea28_)]]></author>
			<pubDate>Fri, 26 Feb 2021 08:29:58 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146514#p146514</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прошу помощи в написание скрипта для HTML правки <тегов>]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146513#p146513</link>
			<description><![CDATA[<div class="quotebox"><cite>edea28_ пишет:</cite><blockquote><p>Что тут надо исправить</p></blockquote></div><div class="quotebox"><cite>edea28_ пишет:</cite><blockquote><div class="codebox"><pre><code>RegExReplace(%Clipboard%, &quot;(&lt;table&gt;)(.*)(&lt;/table&gt;)&quot;)</code></pre></div></blockquote></div><div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><div class="codebox"><pre><code>RegExReplace(html, &quot;s)&lt;table&gt;.*?&lt;/table&gt;\R?&quot;)</code></pre></div></blockquote></div><p>Вопрос, что тут надо исправить. (?)</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Fri, 26 Feb 2021 08:24:24 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146513#p146513</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прошу помощи в написание скрипта для HTML правки <тегов>]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146512#p146512</link>
			<description><![CDATA[<p>Что тут надо исправить чтоб RegExReplace понимал что я вставлю текст из буфера обмена. А потом исправленный текст вставлял обратно.<br /></p><div class="codebox"><pre><code>
vk9::      
MyVar = %Clipboard%
OutputVar := RegExReplace(%Clipboard%, &quot;(&lt;table&gt;)(.*)(&lt;/table&gt;)&quot;)
MsgBox, %OutputVar%
return</code></pre></div><br /><p>Скрипт с авто копированием текста.<br /></p><div class="codebox"><pre><code>
vk9::
SetBatchLines, -1
ClipBoard =
SendInput, ^{vk41}^{vk43}    ;  ctrl+A crl+C
ClipWait, 2
if ErrorLevel
{
   MsgBox, Буфер обмена пуст!
   Return
 }   
MyVar = %Clipboard%
OutputVar := RegExReplace(%Clipboard%, &quot;(&lt;table&gt;)(.*)(&lt;/table&gt;)&quot;)
MsgBox, %OutputVar%
return

</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (edea28_)]]></author>
			<pubDate>Fri, 26 Feb 2021 06:18:51 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146512#p146512</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прошу помощи в написание скрипта для HTML правки <тегов>]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146509#p146509</link>
			<description><![CDATA[<div class="quotebox"><cite>edea28_ пишет:</cite><blockquote><p>И я не совсем понял зачем кусок html кода использовать в скрипте</p></blockquote></div><p>Только для того, чтобы показать, что регулярка работает правильно. По сути решение — только эта часть:<br /></p><div class="codebox"><pre><code>RegExReplace(html, &quot;s)&lt;table&gt;.*?&lt;/table&gt;\R?&quot;)</code></pre></div><p>которая решает задачу удаления всего лишнего. Ваша задача теперь только вставить результат.</p><div class="quotebox"><cite>edea28_ пишет:</cite><blockquote><p>У меня вообще нету вариантов как реализовать и доделать.</p></blockquote></div><p>Это форум для тех, кто интересуется программированием, если что. Обычно такие люди и Гуглом умеют пользоваться. Попробуйте запрос «ahk вставить текст».</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Thu, 25 Feb 2021 21:03:53 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146509#p146509</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прошу помощи в написание скрипта для HTML правки <тегов>]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146508#p146508</link>
			<description><![CDATA[<p><strong>teadrinker</strong><br />У меня вообще нету вариантов как реализовать и доделать.<br />И я не совсем понял зачем кусок html кода использовать в скрипте</p>]]></description>
			<author><![CDATA[null@example.com (edea28_)]]></author>
			<pubDate>Thu, 25 Feb 2021 20:58:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146508#p146508</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прошу помощи в написание скрипта для HTML правки <тегов>]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=146507#p146507</link>
			<description><![CDATA[<p>Правильно так:<br /></p><div class="codebox"><pre><code>html =
(
 &lt;div&gt;        &lt;/div&gt;
&lt;h4&gt;Характеристики:&lt;/h4&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Артикул&lt;/td&gt;
&lt;td&gt;EA07.003.001&lt;/td&gt;
&lt;tr&gt;
&lt;td&gt;Напряжение питания&lt;/td&gt;
&lt;td&gt;230 В; 50 Гц или 24 В АС/DC&lt;/td&gt;
&lt;/table&gt;
Блабла по теме дальше.
)
MsgBox, % RegExReplace(html, &quot;s)&lt;table&gt;.*?&lt;/table&gt;\R?&quot;)</code></pre></div><p>Как вставить в свой, подумайте сами.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Thu, 25 Feb 2021 20:48:44 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=146507#p146507</guid>
		</item>
	</channel>
</rss>
