<?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=8728&amp;type=atom" />
	<updated>2013-10-06T12:33:09Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8728</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование текста]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75797#p75797" />
			<content type="html"><![CDATA[<p>Проблема решилась<br /></p><div class="codebox"><pre><code>FileEncoding, UTF-8</code></pre></div>]]></content>
			<author>
				<name><![CDATA[sergeiplugatyr]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30382</uri>
			</author>
			<updated>2013-10-06T12:33:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75797#p75797</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование текста]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75796#p75796" />
			<content type="html"><![CDATA[<p>Вопрос по теме.<br />Не получается у меня с русскими словами сделать.</p><div class="codebox"><pre><code>FileRead, Var, *t %temp%\time.txt
Pos = 1
P1 = &lt;div class=&quot;Таймер&quot;&gt; ; Типо такого
P2 = &lt;/div&gt;
Pos := RegExMatch(Var, &quot;\Q&quot; P1 &quot;\E(.*?)\Q&quot; P2 &quot;\E&quot;, Res, Pos)
GuiControl, , Edit1, % Res1</code></pre></div><p>Ну так вот, если там написано русское слово, то результат не отправляется в контрол Edit1, а без него работает но результат уже другой.</p>]]></content>
			<author>
				<name><![CDATA[sergeiplugatyr]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30382</uri>
			</author>
			<updated>2013-10-06T12:24:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75796#p75796</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование текста]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75746#p75746" />
			<content type="html"><![CDATA[<p>Огромное спасибо.</p>]]></content>
			<author>
				<name><![CDATA[BaTcoH]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30874</uri>
			</author>
			<updated>2013-10-04T11:46:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75746#p75746</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование текста]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75745#p75745" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
Var = 
(
&lt;a class=&quot;mf_bold mf_t14&quot; href=&quot;/bk/lizaveta82/&quot;&lt;/a&gt;
&lt;a class=&quot;mf_bold mf_t14&quot; href=&quot;/MsgBox/&quot;&lt;/a&gt;
&lt;a class=&quot;mf_bold mf_t14&quot; href=&quot;/mail/sokolikksu/&quot;&lt;/a&gt;
)

Pos = 1 
P1 = &lt;a class=&quot;mf_bold mf_t14&quot; href=&quot;/
P2 = /&quot;&lt;/a&gt;
    
1::
    Pos := RegExMatch(Var, &quot;\Q&quot; P1 &quot;\E(.*?)\Q&quot; P2 &quot;\E&quot;, Res, Pos)
    Pos += StrLen(Res := Res1)  
    If RegExMatch(Res, &quot;(.*?)/(.*)&quot;, Match)
        Res := Match2 &quot;@&quot; Match1 &quot;.ru&quot;
    MsgBox % Res
    return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-10-04T11:40:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75745#p75745</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование текста]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75743#p75743" />
			<content type="html"><![CDATA[<p>И ещё маленький штришок, если вас не затруднит)<br />Как сделать проверку. К примеру.<br />Если у нас bk/lizaveta82 получается, то в буфер обмена чтобы копировалось lizaveta82@bk.ru<br />А если mail/sokolikksu то sokolikksu@mail.ru</p>]]></content>
			<author>
				<name><![CDATA[BaTcoH]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30874</uri>
			</author>
			<updated>2013-10-04T11:27:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75743#p75743</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование текста]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75737#p75737" />
			<content type="html"><![CDATA[<p>Всё, разобрался. Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[BaTcoH]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30874</uri>
			</author>
			<updated>2013-10-04T10:21:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75737#p75737</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование текста]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75736#p75736" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>и т.п мусора.</p></blockquote></div><p>Ну и что...</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-10-04T10:19:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75736#p75736</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование текста]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75735#p75735" />
			<content type="html"><![CDATA[<p>Попробовал запихнуть в файл: <br /></p><div class="codebox"><pre><code>
&lt;a class=&quot;mf_bold mf_t14&quot; href=&quot;/bk/lizaveta82/&quot;&lt;/a&gt;
&lt;a class=&quot;mf_bold mf_t14&quot; href=&quot;/mail/sokolikksu/&quot;&lt;/a&gt;
</code></pre></div><p>Скрипт хорошо стал функционировать.<br />Но проблема в том, что у меня не весь файл состоит из таких строк. Там полно таких как:<br /></p><div class="codebox"><pre><code>
&lt;script type=&quot;text/javascript&quot;&gt;
try 
function timeInterval(bP) 
    if (!rT[bP]) rT[bP] = new Date();
    else 
        rT.i[rT.i.length] = bP + &#039;=&#039; + ( (new Date()).getTime() - rT[bP].getTime() );
        delete rT[bP];
</code></pre></div><p>и т.п мусора.</p>]]></content>
			<author>
				<name><![CDATA[BaTcoH]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30874</uri>
			</author>
			<updated>2013-10-04T10:14:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75735#p75735</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование текста]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75734#p75734" />
			<content type="html"><![CDATA[<p>Ну так проведи отладку:<br /></p><div class="codebox"><pre><code> 
FileRead, Var, *t C:\Address.txt
MsgBox % Var
Pos = 1 
P1 = &lt;a class=&quot;mf_bold mf_t14&quot; href=&quot;/
P2 = /&quot;&lt;/a&gt;
1::
    Pos := RegExMatch(Var, &quot;\Q&quot; P1 &quot;\E(.*?)\Q&quot; P2 &quot;\E&quot;, Res, Pos)
    MsgBox % Res1
    Pos += StrLen(Res1)
    clipboard := Res1
    return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-10-04T10:13:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75734#p75734</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование текста]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75733#p75733" />
			<content type="html"><![CDATA[<p>Здесь ошибки не возникает.<br />Проблема в том, что он не находит что копировать.</p>]]></content>
			<author>
				<name><![CDATA[BaTcoH]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30874</uri>
			</author>
			<updated>2013-10-04T10:09:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75733#p75733</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование текста]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75732#p75732" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>clipboard := Res1</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-10-04T10:05:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75732#p75732</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование текста]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75730#p75730" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
FileRead, Var, *t C:\Address.txt
Pos = 1 
P1 = &lt;a class=&quot;mf_bold mf_t14&quot; href=&quot;/
P2 = /&quot;&lt;/a&gt;
1::
    Pos := RegExMatch(Var, &quot;\Q&quot; P1 &quot;\E(.*?)\Q&quot; P2 &quot;\E&quot;, Res, Pos)
    Pos += StrLen(Res1)
    clipboard = % Res1
    return
</code></pre></div><p>Что делаю не так?</p>]]></content>
			<author>
				<name><![CDATA[BaTcoH]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30874</uri>
			</author>
			<updated>2013-10-04T09:54:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75730#p75730</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование текста]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75726#p75726" />
			<content type="html"><![CDATA[<p>В FileRead примени опцию <strong>*t</strong> иначе с RegEx будут проблемы.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-10-04T09:35:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75726#p75726</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование текста]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75724#p75724" />
			<content type="html"><![CDATA[<p>Спасибо огромное.</p>]]></content>
			<author>
				<name><![CDATA[BaTcoH]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30874</uri>
			</author>
			<updated>2013-10-04T09:31:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75724#p75724</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование текста]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75723#p75723" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>А как сделать чтобы поиск происходил в текстовом файле, а не в самом скрипте.</p><p>копировалось в буфер обмена</p></blockquote></div><p>Команды <strong>FileRead</strong> и <strong>Clipboard</strong></p><div class="quotebox"><blockquote><p>при повторном нажатии переходило к следующей такой же маской</p></blockquote></div><p>???</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-10-04T09:30:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75723#p75723</id>
		</entry>
</feed>
