<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Деление значения на "строки", аля Fetch]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=10931</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10931&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Деление значения на "строки", аля Fetch».]]></description>
		<lastBuildDate>Mon, 12 Oct 2015 07:56:59 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Деление значения на "строки", аля Fetch]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97969#p97969</link>
			<description><![CDATA[<div class="codebox"><pre><code>adddays := 3
indate := &quot;*** Did your best friend try the Kleptomania? *** 08.10.2015 *** Did your best friend try the Kleptomania? ***&quot;

If !RegExMatch(indate, &quot;(?P&lt;me&gt;\d{2}\.\d{2}\.\d{4})&quot;, ti) {
    MsgBox В переменной &quot;indate&quot; не содержится подстрока со временем вида dd.MM.yyyy
    Return
}
; MsgBox % time
outdate := (_:=StrSplit(time,&quot;.&quot;))[3] _[2] _[1]
outdate += adddays, days
FormatTime, DayOfWeek, %outdate%, ddd
MsgBox % DayOfWeek
outdate += DayOfWeek=&quot;Вс&quot;, days
FormatTime, outdate, %outdate%, dd.MM.yyyy
MsgBox % outdate</code></pre></div><p>Скорее всего, отображение дня недели (Вс, Пн и т.д.) зависит от установленного языка системы, то есть в общем случае нужно еще добавить проверки.</p>]]></description>
			<author><![CDATA[null@example.com (Irbis)]]></author>
			<pubDate>Mon, 12 Oct 2015 07:56:59 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97969#p97969</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Деление значения на "строки", аля Fetch]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97968#p97968</link>
			<description><![CDATA[<p>А подскажите еще один маленький нюанс, каким образом сделать проверку outdate - если попадает на воскресенье то + 1 день?</p>]]></description>
			<author><![CDATA[null@example.com (Seva)]]></author>
			<pubDate>Mon, 12 Oct 2015 07:05:13 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97968#p97968</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Деление значения на "строки", аля Fetch]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97270#p97270</link>
			<description><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Вот сейчас очень сильно удивили, а предложенный мною код не катит?</p></blockquote></div><p>Спасибо, катит <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> Просто пока разбирался с синтаксисом... Не успел попробовать <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> Еще раз спасибо!</p>]]></description>
			<author><![CDATA[null@example.com (Seva)]]></author>
			<pubDate>Wed, 09 Sep 2015 15:50:12 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97270#p97270</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Деление значения на "строки", аля Fetch]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97269#p97269</link>
			<description><![CDATA[<p>Вот сейчас очень сильно удивили, а предложенный мною код не катит?<br /></p><div class="codebox"><pre><code>adddays := 3
indate := &quot;*** Did your best friend try the Kleptomania? *** 21.07.2014 *** Did your best friend try the Kleptomania? ***&quot;

If !RegExMatch(indate, &quot;(?P&lt;me&gt;\d{2}\.\d{2}\.\d{4})&quot;, ti) {
    MsgBox В переменной &quot;indate&quot; не содержится подстрока со временем вида dd.MM.yyyy
    Return
}
MsgBox % time
outdate := (_:=StrSplit(time,&quot;.&quot;))[3] _[2] _[1] 
outdate += adddays, days
FormatTime, outdate, %outdate%, dd.MM.yyyy
MsgBox % outdate</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Wed, 09 Sep 2015 15:44:53 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97269#p97269</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Деление значения на "строки", аля Fetch]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97268#p97268</link>
			<description><![CDATA[<p>А можно ли удалить из буфера ВСЕ, кроме \d{2}\.\d{2}\.\d{4}&nbsp; &nbsp;??</p>]]></description>
			<author><![CDATA[null@example.com (Seva)]]></author>
			<pubDate>Wed, 09 Sep 2015 15:42:51 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97268#p97268</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Деление значения на "строки", аля Fetch]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97267#p97267</link>
			<description><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Да какие тут гарантии, если речь про распознаватель текста, мало ли что он ещё по краям понавесит.</p></blockquote></div><p>Иногда &quot;вешает&quot; Enter</p>]]></description>
			<author><![CDATA[null@example.com (Seva)]]></author>
			<pubDate>Wed, 09 Sep 2015 15:40:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97267#p97267</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Деление значения на "строки", аля Fetch]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97266#p97266</link>
			<description><![CDATA[<p>Да какие тут гарантии, если речь про распознаватель текста, мало ли что он ещё по краям понавесит.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Wed, 09 Sep 2015 15:39:57 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97266#p97266</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Деление значения на "строки", аля Fetch]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97265#p97265</link>
			<description><![CDATA[<p>Думаю, если хочется удостовериться в 100% правильности даты, то надо еще условий добавить:<br /></p><div class="codebox"><pre><code>adddays := 3
indate := &quot;*** Did your best friend try the Kleptomania? *** 121.25.2014e *** Did your best friend try the Kleptomania? ***&quot;

If !RegExMatch(indate, &quot;(?P&lt;me&gt;\d{2}\.\d{2}\.\d{4})&quot;, ti) {
    MsgBox В переменной &quot;indate&quot; не содержится подстрока со временем вида dd.MM.yyyy
    Return
}
outdate := (_:=StrSplit(time,&quot;.&quot;))[3] _[2] _[1] 
outdate += adddays, days
FormatTime, outdate, %outdate%, dd.MM.yyyy
MsgBox % outdate</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Wed, 09 Sep 2015 15:34:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97265#p97265</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Деление значения на "строки", аля Fetch]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97264#p97264</link>
			<description><![CDATA[<p>Так время не проверить:<br /></p><div class="codebox"><pre><code>var := &quot;2й1.0ё7.20ы14 *** Did your best friend try the Kleptomania? ***&quot; 
msgbox % &quot;&quot;&quot;&quot; RegexReplace(var,&quot; ?\*\*\*.+?\*\*\* ?&quot;) &quot;&quot;&quot;&quot;</code></pre></div><p>Может как то так:<br /></p><div class="codebox"><pre><code>adddays := 3
indate := &quot;*** Did your best friend try the Kleptomania? *** 21.07.2014 *** Did your best friend try the Kleptomania? ***&quot;

If !RegExMatch(indate, &quot;(?P&lt;me&gt;\d{2}\.\d{2}\.\d{4})&quot;, ti) {
    MsgBox В переменной &quot;indate&quot; не содержится подстрока со временем вида dd.MM.yyyy
    Return
}
outdate := (_:=StrSplit(time,&quot;.&quot;))[3] _[2] _[1] 
outdate += adddays, days
FormatTime, outdate, %outdate%, dd.MM.yyyy
MsgBox % outdate</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Wed, 09 Sep 2015 15:27:25 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97264#p97264</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Деление значения на "строки", аля Fetch]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97262#p97262</link>
			<description><![CDATA[<div class="codebox"><pre><code>var := &quot;21.07.2014&quot;
;var := &quot;21.07.2014 *** Did your best friend try the Kleptomania? ***&quot;
;var := &quot;*** Did your best friend try the Kleptomania? *** 21.07.2014&quot;
msgbox % &quot;&quot;&quot;&quot; RegexReplace(var,&quot; ?\*\*\*.+?\*\*\* ?&quot;) &quot;&quot;&quot;&quot;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Wed, 09 Sep 2015 14:36:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97262#p97262</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Деление значения на "строки", аля Fetch]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97261#p97261</link>
			<description><![CDATA[<div class="quotebox"><cite>Drugoy пишет:</cite><blockquote><p>Да, используя IfInString/RegExMatch/RegExReplace.</p></blockquote></div><p>Спасибо, а на примере покажете? А то я &quot;чайник&quot; <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />*** Did your best friend try the Kleptomania? *** 21.07.2014<br />или<br />21.07.2014 *** Did your best friend try the Kleptomania? ***</p><p>Заранее спасибо.</p>]]></description>
			<author><![CDATA[null@example.com (Seva)]]></author>
			<pubDate>Wed, 09 Sep 2015 13:44:08 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97261#p97261</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Деление значения на "строки", аля Fetch]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97260#p97260</link>
			<description><![CDATA[<p>Да, используя IfInString/RegExMatch/RegExReplace.</p>]]></description>
			<author><![CDATA[null@example.com (Drugoy)]]></author>
			<pubDate>Wed, 09 Sep 2015 12:24:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97260#p97260</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Деление значения на "строки", аля Fetch]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97258#p97258</link>
			<description><![CDATA[<p>Есть еще один небольшой вопрос: Программа Kleptomania после нескольких распознаваний текста загоняет в буфер всякую рекламу типа - *** Did your best friend try the Kleptomania? *** или *** Kleptomania FAQ is at http://www.structurise.com/kleptomania/faq.htm *** <strong>(методом научного тыка выяснил, что реклама добавляется или ДО или ПОСЛЕ данных, скопированных в буфер обмена)</strong><br />Можно ли как нибудь делать проверку на наличие ненужных символов (допустим ***) в буфере обмена и при наличии их обрезал содержимое буфера до даты, которая мне собственно и нужна?</p>]]></description>
			<author><![CDATA[null@example.com (Seva)]]></author>
			<pubDate>Wed, 09 Sep 2015 10:48:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97258#p97258</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Деление значения на "строки", аля Fetch]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97195#p97195</link>
			<description><![CDATA[<p>Спасибо всем, разобрался.</p>]]></description>
			<author><![CDATA[null@example.com (Seva)]]></author>
			<pubDate>Mon, 07 Sep 2015 17:58:31 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97195#p97195</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Деление значения на "строки", аля Fetch]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97194#p97194</link>
			<description><![CDATA[<div class="codebox"><pre><code>\d{2}\.</code></pre></div><p>Цифры только две, дальше точка. \ экранирует спец символы. RegEx он и в AutoHotkey RegEx.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Mon, 07 Sep 2015 17:58:03 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97194#p97194</guid>
		</item>
	</channel>
</rss>
