<?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=10643&amp;type=atom" />
	<updated>2018-04-09T05:51:44Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10643</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обработка чисел с определённым шагом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=124549#p124549" />
			<content type="html"><![CDATA[<p><em></em></p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2018-04-09T05:51:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=124549#p124549</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обработка чисел с определённым шагом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=94052#p94052" />
			<content type="html"><![CDATA[<p>Если есть опция регулярные строки или что то подобное в опциях, то конечно, синтаксис везде стандартизирован (за искл. нескольких нюансов).<br />Вышеуказанный шаблон всего лишь возвращает или числа с первой группы (&quot;456456-3657652&quot;) или числа, строки с второй: (напр &quot;125&quot;), если я не ошибаюсь. При чем если будет разделитель не пробел а табуляция, он уже не сработает. Не придумал пока как можно в регулярке проверять, на сколько одно число больше другого <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />Не знаю на счет Notepad++ но однозначно посоветовал бы AkelPad -- кроме станд. ф-ций он основан на плагинах (JScript которые легко можно самому добавлять -- есть шаблон с комментами), в которых можно практически ВСЕ.<br /></p><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><span class="postimg"><img src="http://maxbeting.com/1-1.jpg" alt="http://maxbeting.com/1-1.jpg" /></span></p></div></div>]]></content>
			<author>
				<name><![CDATA[_gruz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32863</uri>
			</author>
			<updated>2015-05-19T16:47:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=94052#p94052</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обработка чисел с определённым шагом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=94025#p94025" />
			<content type="html"><![CDATA[<p>Тут надо спрашивать у продвинутых пользователей notepad++.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2015-05-18T09:55:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=94025#p94025</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обработка чисел с определённым шагом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=94021#p94021" />
			<content type="html"><![CDATA[<p>Означает ли это, что и в Notepad++, указав шаблон, можно обрабатывать подобные списки?</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2015-05-18T06:39:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=94021#p94021</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обработка чисел с определённым шагом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=94009#p94009" />
			<content type="html"><![CDATA[<p>Нету там массива, только регулярное.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2015-05-17T14:21:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=94009#p94009</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обработка чисел с определённым шагом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=94006#p94006" />
			<content type="html"><![CDATA[<p>Так понимаю, совмещён массив с регулярными? Интересно, спасибо.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2015-05-17T05:58:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=94006#p94006</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обработка чисел с определённым шагом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=94005#p94005" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>sr =
(
456456-3625396 50
456456-3627444 75
456456-3634100 100
456456-3634868 125
456456-3636916 150
456456-3637684 175
456456-3639220 200
456456-3639732 225
456456-3641524 250
456456-3642036 275
456456-3643316 300
456456-3643572 325
456456-3644340 350
456456-3644596 375
456456-3644852 400
456456-3645620 425
456456-3646388 450
456456-3647156 475
456456-3648948 500
456456-3649716 350
456456-3650228 375
456456-3650996 400
456456-3651508 425
456456-3638196 175
456456-3640756 200
456456-3642292 225
456456-3627188 25
456456-3637940 50
456456-3638708 75
456456-3643828 100

456456-3629748 50
456456-3630260 75
456456-3638964 50
456456-3639988 75

456456-3654324 50
456456-3654580 75
456456-3654836 100
456456-3727396 0
456456-3656372 75
456456-3656628 100
456456-3657652 125

456456-3655524 50
)
Pos := 1
While Pos := RegExMatch(sr, &quot;s)(\d+-\d+) (\d+)&quot;,match,Pos+StrLen(match))
{
   if (match2 - 25 != matchPrev)
      rm .= match1 &quot;`n&quot;
   matchPrev := match2
}
msgbox % rm</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2015-05-17T01:30:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=94005#p94005</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обработка чисел с определённым шагом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=94001#p94001" />
			<content type="html"><![CDATA[<p>Точно, <strong>_gruz</strong>, я и забыл об этом)) Но гибкость и сейчас вроде вполне себе гибкая — но разве регулярными можно обрабатывать числовые шаги?</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2015-05-16T21:27:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=94001#p94001</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обработка чисел с определённым шагом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=94000#p94000" />
			<content type="html"><![CDATA[<p>Из файла там наверное символ завершения строки другой. Попробуй так:<br /></p><div class="codebox"><pre><code>FileRead, sr, *t %a_desktop%\TMP.TXT</code></pre></div><p>и<br /></p><div class="codebox"><pre><code>Loop, Parse, sr, `n</code></pre></div><p>Опция *t: заменяет все пары символов возврата каретки и перевода строки (`r`n) на переводы строки (`n).<br />Или только в цикле поменять на то, что нужно, в зависимости от ОС, но тогда если поставить для цикла только один вариант переноса строки, то в другой ОС не будет работать. тут или как в начале я указал, или рег. выражения использовать (или опцию ИЛИ).</p><p>А почему не использовать регулярные выражения, тогда гибкость и масштабированность намного больше была бы.</p>]]></content>
			<author>
				<name><![CDATA[_gruz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32863</uri>
			</author>
			<updated>2015-05-16T21:10:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=94000#p94000</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обработка чисел с определённым шагом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=93995#p93995" />
			<content type="html"><![CDATA[<p>Вопрос возник по скрипту: когда список читается из файла, он почему-то не обрабатывается —</p><div class="codebox"><pre><code>FileRead, sr, %a_desktop%\TMP.TXT

Loop, Parse, sr, `r`n
   old:=v[2], v:=StrSplit(A_LoopField,&quot; &quot;), v[1] &amp;&amp; v[2]!=old+25 &amp;&amp; rm .= v[1] . &quot;`n&quot;

FileAppend % rm, %a_desktop%\TRDS.TXT</code></pre></div><p>Может директива какая нужна?</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2015-05-16T17:47:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=93995#p93995</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обработка чисел с определённым шагом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=93945#p93945" />
			<content type="html"><![CDATA[<p>Громадное спасибо, <strong>Irbis</strong>! А по твоему вопросу — вроде бы, насколько я смотрел и вникал, такая ситуация исключается, потому что если они будут следовать сразу друг за другом, без других коммов между ними, то это получится продолжение того же треда. Тогда как я вывожу командой (в программе PowerGREP) подряд все коммы в оригинальной последовательности (включая даже закрывающий тег HTML, чтобы даже от файла к файлу существовала граница), что в результатах выглядит так: </p><div class="codebox"><pre><code>
100592.html- 
100592.html- 
100592.html- 
100592.html- 
100592.html-825584 0(
100592.html- 
100592.html- 
100790.html- 
100790.html- 
100790.html-829622 50
100790.html-827062 0(
100790.html- 
100790.html- 
100790.html- 
100790.html- 
100790.html-828854 0(
100790.html- 
100790.html-832950 50(
100790.html-833974 75
100790.html- 
100790.html- 
100790.html- 
100790.html- 
100790.html-830902 25(
100790.html-831158 50
100790.html-831414 75
100790.html-831926 25
100790.html-832694 50
100790.html-841654 50
100790.html-842422 75
100790.html-854966 100
100790.html-855222 125
100790.html- 
100790.html- 
100790.html- 
100790.html-835254 0(
100790.html- 
100790.html- 
</code></pre></div><p>(Видимые кое-где скобки — это удалённые коммы — и в случаях, когда они с границами по сторонам, их нужно удалять перед обработкой скриптом.</p><p>или примерно так, если без замен, с простым выводом результатов:</p><div class="codebox"><pre><code>
&lt;div id=&quot;ljcmt
&lt;div id=&quot;ljcmt
&lt;div id=&quot;ljcmt
&lt;div id=&quot;ljcmt
&lt;div  id=&quot;ljcmt3625396&quot; style=&quot;margin-left: 50px&quot;&gt;
&lt;div  id=&quot;ljcmt3627444&quot; style=&quot;margin-left: 75px&quot;&gt;
&lt;div  id=&quot;ljcmt3634100&quot; style=&quot;margin-left: 100px&quot;&gt;
&lt;div  id=&quot;ljcmt3634868&quot; style=&quot;margin-left: 125px&quot;&gt;
&lt;div  id=&quot;ljcmt3636916&quot; style=&quot;margin-left: 150px&quot;&gt;
&lt;div  id=&quot;ljcmt3637684&quot; style=&quot;margin-left: 175px&quot;&gt;
&lt;div  id=&quot;ljcmt3639220&quot; style=&quot;margin-left: 200px&quot;&gt;
&lt;div  id=&quot;ljcmt3639732&quot; style=&quot;margin-left: 225px&quot;&gt;
&lt;div  id=&quot;ljcmt3625652&quot; style=&quot;margin-left: 50px&quot;&gt;
&lt;div  id=&quot;ljcmt3626932&quot; style=&quot;margin-left: 75px&quot;&gt;
&lt;div  id=&quot;ljcmt3636404&quot; style=&quot;margin-left: 100px&quot;&gt;
&lt;div  id=&quot;ljcmt3636660&quot; style=&quot;margin-left: 125px&quot;&gt;
&lt;div  id=&quot;ljcmt3637172&quot; style=&quot;margin-left: 150px&quot;&gt;
&lt;div  id=&quot;ljcmt3636148&quot; style=&quot;margin-left: 75px&quot;&gt;
&lt;div  id=&quot;ljcmt3637428&quot; style=&quot;margin-left: 100px&quot;&gt;
&lt;div  id=&quot;ljcmt3642548&quot; style=&quot;margin-left: 125px&quot;&gt;
&lt;div  id=&quot;ljcmt3627188&quot; style=&quot;margin-left: 25px&quot;&gt;
&lt;div  id=&quot;ljcmt3637940&quot; style=&quot;margin-left: 50px&quot;&gt;
&lt;div  id=&quot;ljcmt3638708&quot; style=&quot;margin-left: 75px&quot;&gt;
&lt;div  id=&quot;ljcmt3643828&quot; style=&quot;margin-left: 100px&quot;&gt;
&lt;div  id=&quot;ljcmt3661236&quot; style=&quot;margin-left: 125px&quot;&gt;
&lt;div  id=&quot;ljcmt3663284&quot; style=&quot;margin-left: 150px&quot;&gt;
&lt;div  id=&quot;ljcmt3663796&quot; style=&quot;margin-left: 175px&quot;&gt;
&lt;div  id=&quot;ljcmt3665076&quot; style=&quot;margin-left: 200px&quot;&gt;
&lt;div id=&quot;ljcmt
&lt;div  id=&quot;ljcmt3629748&quot; style=&quot;margin-left: 50px&quot;&gt;
&lt;div  id=&quot;ljcmt3630260&quot; style=&quot;margin-left: 75px&quot;&gt;
&lt;div  id=&quot;ljcmt3638964&quot; style=&quot;margin-left: 50px&quot;&gt;
&lt;div  id=&quot;ljcmt3639988&quot; style=&quot;margin-left: 75px&quot;&gt;
&lt;div id=&quot;ljcmt
&lt;div id=&quot;ljcmt
&lt;div  id=&quot;ljcmt3654324&quot; style=&quot;margin-left: 50px&quot;&gt;
&lt;div  id=&quot;ljcmt3654580&quot; style=&quot;margin-left: 75px&quot;&gt;
&lt;div  id=&quot;ljcmt3654836&quot; style=&quot;margin-left: 100px&quot;&gt;
&lt;div  id=&quot;ljcmt3656372&quot; style=&quot;margin-left: 75px&quot;&gt;
&lt;div  id=&quot;ljcmt3656628&quot; style=&quot;margin-left: 100px&quot;&gt;
&lt;div  id=&quot;ljcmt3657652&quot; style=&quot;margin-left: 125px&quot;&gt;
&lt;div  id=&quot;ljcmt3660212&quot; style=&quot;margin-left: 150px&quot;&gt;
&lt;div  id=&quot;ljcmt3662260&quot; style=&quot;margin-left: 175px&quot;&gt;
&lt;div id=&quot;ljcmt
&lt;div id=&quot;ljcmt
&lt;div id=&quot;ljcmt
&lt;div id=&quot;ljcmt
&lt;div  id=&quot;ljcmt3657396&quot; style=&quot;margin-left: 75px&quot;&gt;
&lt;div  id=&quot;ljcmt3657908&quot; style=&quot;margin-left: 100px&quot;&gt;
&lt;div  id=&quot;ljcmt3658676&quot; style=&quot;margin-left: 125px&quot;&gt;
&lt;div  id=&quot;ljcmt3658932&quot; style=&quot;margin-left: 150px&quot;&gt;
&lt;div id=&quot;ljcmt
&lt;div  id=&quot;ljcmt3626420&quot; style=&quot;margin-left: 25px&quot;&gt;
&lt;div  id=&quot;ljcmt3626676&quot; style=&quot;margin-left: 50px&quot;&gt;
&lt;div  id=&quot;ljcmt3628724&quot; style=&quot;margin-left: 75px&quot;&gt;
&lt;div  id=&quot;ljcmt3631284&quot; style=&quot;margin-left: 100px&quot;&gt;
&lt;div  id=&quot;ljcmt3631796&quot; style=&quot;margin-left: 125px&quot;&gt;
&lt;div  id=&quot;ljcmt3661492&quot; style=&quot;margin-left: 475px&quot;&gt;
&lt;div  id=&quot;ljcmt3662516&quot; style=&quot;margin-left: 475px&quot;&gt;
&lt;div  id=&quot;ljcmt3632820&quot; style=&quot;margin-left: 100px&quot;&gt;
&lt;div  id=&quot;ljcmt3633588&quot; style=&quot;margin-left: 125px&quot;&gt;
&lt;div  id=&quot;ljcmt3635124&quot; style=&quot;margin-left: 150px&quot;&gt;
&lt;div  id=&quot;ljcmt3640500&quot; style=&quot;margin-left: 175px&quot;&gt;
&lt;div  id=&quot;ljcmt3645876&quot; style=&quot;margin-left: 200px&quot;&gt;
&lt;div  id=&quot;ljcmt3655348&quot; style=&quot;margin-left: 225px&quot;&gt;
&lt;div  id=&quot;ljcmt3641780&quot; style=&quot;margin-left: 75px&quot;&gt;
&lt;div  id=&quot;ljcmt3648436&quot; style=&quot;margin-left: 100px&quot;&gt;
&lt;div id=&quot;ljcmt
&lt;div  id=&quot;ljcmt3629236&quot; style=&quot;margin-left: 50px&quot;&gt;
&lt;div  id=&quot;ljcmt3629492&quot; style=&quot;margin-left: 75px&quot;&gt;
&lt;div  id=&quot;ljcmt3630772&quot; style=&quot;margin-left: 100px&quot;&gt;
&lt;div  id=&quot;ljcmt3631028&quot; style=&quot;margin-left: 125px&quot;&gt;
&lt;div  id=&quot;ljcmt3632052&quot; style=&quot;margin-left: 50px&quot;&gt;
&lt;div  id=&quot;ljcmt3632564&quot; style=&quot;margin-left: 75px&quot;&gt;
&lt;div  id=&quot;ljcmt3641012&quot; style=&quot;margin-left: 75px&quot;&gt;
&lt;div  id=&quot;ljcmt3647668&quot; style=&quot;margin-left: 100px&quot;&gt;
&lt;div  id=&quot;ljcmt3650740&quot; style=&quot;margin-left: 125px&quot;&gt;
&lt;div id=&quot;ljcmt
&lt;div  id=&quot;ljcmt3630516&quot; style=&quot;margin-left: 50px&quot;&gt;
&lt;div  id=&quot;ljcmt3634356&quot; style=&quot;margin-left: 50px&quot;&gt;
&lt;div id=&quot;ljcmt
&lt;div  id=&quot;ljcmt3644084&quot; style=&quot;margin-left: 50px&quot;&gt;
&lt;div id=&quot;ljcmt
&lt;div  id=&quot;ljcmt3649460&quot; style=&quot;margin-left: 50px&quot;&gt;
&lt;div  id=&quot;ljcmt3650484&quot; style=&quot;margin-left: 75px&quot;&gt;
&lt;div  id=&quot;ljcmt3651252&quot; style=&quot;margin-left: 100px&quot;&gt;
&lt;div  id=&quot;ljcmt3660724&quot; style=&quot;margin-left: 125px&quot;&gt;
&lt;div id=&quot;ljcmt
&lt;div  id=&quot;ljcmt3646900&quot; style=&quot;margin-left: 25px&quot;&gt;
&lt;div id=&quot;ljcmt
&lt;div  id=&quot;ljcmt3649972&quot; style=&quot;margin-left: 75px&quot;&gt;
&lt;div  id=&quot;ljcmt3652276&quot; style=&quot;margin-left: 100px&quot;&gt;
&lt;div id=&quot;ljcmt
&lt;div id=&quot;ljcmt
&lt;div id=&quot;ljcmt
&lt;div id=&quot;ljcmt
</code></pre></div><p>Т.е. в списке коммы с одним пробелом после DIV — это развернутые коммы, а с двумя — свёрнутые.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2015-05-14T06:02:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=93945#p93945</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обработка чисел с определённым шагом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=93940#p93940" />
			<content type="html"><![CDATA[<p>Если обойти пока этот аспект, то можно так:<br /></p><div class="codebox"><pre><code>sr =
(
456456-3625396 50
456456-3627444 75
456456-3634100 100
456456-3634868 125
456456-3636916 150
456456-3637684 175
456456-3639220 200
456456-3639732 225
456456-3641524 250
456456-3642036 275
456456-3643316 300
456456-3643572 325
456456-3644340 350
456456-3644596 375
456456-3644852 400
456456-3645620 425
456456-3646388 450
456456-3647156 475
456456-3648948 500
456456-3649716 350
456456-3650228 375
456456-3650996 400
456456-3651508 425
456456-3638196 175
456456-3640756 200
456456-3642292 225
456456-3627188 25
456456-3637940 50
456456-3638708 75
456456-3643828 100

456456-3629748 50
456456-3630260 75
456456-3638964 50
456456-3639988 75

456456-3654324 50
456456-3654580 75
456456-3654836 100
456456-3727396 0
456456-3656372 75
456456-3656628 100
456456-3657652 125

456456-3655524 50
)

Loop, Parse, sr, `r`n
   old:=v[2], v:=StrSplit(A_LoopField,&quot; &quot;), v[1] &amp;&amp; v[2]!=old+25 &amp;&amp; rm .= v[1] . &quot;`n&quot;
MsgBox % rm</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2015-05-14T05:11:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=93940#p93940</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обработка чисел с определённым шагом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=93936#p93936" />
			<content type="html"><![CDATA[<p>Обработать список - не проблема. А если такая ситуация, из твоего примера, допустим 2ой трэд начинается с 350, а 1ый заканчивается не на 500, а на 325,&nbsp; как тогда определять границы?</p>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2015-05-14T03:52:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=93936#p93936</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Обработка чисел с определённым шагом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=93934#p93934" />
			<content type="html"><![CDATA[<p>Привет! </p><p>Нарисовалась одна задачка по получению из ЖЖ-страниц — всех первых ссылок из веток со свёрнутыми комментариями, что таким образом позволит получить все свернутые коммы без дублей. Как выяснилось, основная трудность в отсеивании всех последующих коммов, идущих после первого в ветке.<br />Ниже представлен список всех свернутых коммов со страницы, в которых первое число с дефисом — это номер страницы и номер трэда, а второе — отступ в пикселях с шагом в &quot;25&quot;. Первые числа с дефисом можно не учитывать, а делать выводы изходя из значения второго. Например, в списке (колонка &quot;Суровая реальность&quot;) вторым числом сначала идёт 50, ниже идёт 75 (плюс 25), ниже идёт 100 (+25) и так далее до 500, после которого уже идёт 350 — что означает обрыв трэда на пятистах и что с трехсот пятидесяти начинается новый трэд. Т.е. задача в том, чтобы в места обрывов добавлять либо переводы строк (пустую строку), либо, в идеале, как можно видеть во второй колонке.</p><br /><div class="codebox"><pre><code>
Суровая реальность                         Розовая мечта
------------------------------------------------------------------------------------------------
456456-3625396 50                         456456-3625396
456456-3627444 75
456456-3634100 100
456456-3634868 125
456456-3636916 150
456456-3637684 175
456456-3639220 200
456456-3639732 225
456456-3641524 250
456456-3642036 275
456456-3643316 300
456456-3643572 325
456456-3644340 350
456456-3644596 375
456456-3644852 400
456456-3645620 425
456456-3646388 450
456456-3647156 475
456456-3648948 500
456456-3649716 350                        456456-3649716
456456-3650228 375
456456-3650996 400
456456-3651508 425
456456-3638196 175                        456456-3638196
456456-3640756 200
456456-3642292 225
456456-3627188 25                         456456-3627188
456456-3637940 50
456456-3638708 75
456456-3643828 100

456456-3629748 50                         456456-3629748
456456-3630260 75
456456-3638964 50                         456456-3638964
456456-3639988 75

456456-3654324 50                         456456-3654324
456456-3654580 75
456456-3654836 100
456456-3727396 0                          456456-3727396
456456-3656372 75                         456456-3656372
456456-3656628 100
456456-3657652 125

456456-3655524 50                         456456-3655524
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2015-05-13T22:23:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=93934#p93934</id>
		</entry>
</feed>
