<?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=5774&amp;type=atom" />
	<updated>2011-05-04T18:32:33Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5774</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Построчное копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48104#p48104" />
			<content type="html"><![CDATA[<p>Например, так:<br /></p><div class="codebox"><pre><code>   EM_LINEINDEX := 0xBB, EM_LINELENGTH := 0xC1
   EM_SETSEL := 0xB1, EM_SCROLLCARET := 0xB7
 
   Gui, Add, Edit, vEdit1 x0 y0 w110 h70 hwndhEdit1
      , Первая`nВторая не помещается в строку`nТретья`nЧетвёртая не помещается в строку`nПятая
   Gui, Add, Edit, vEdit2 x115 yp wp hp ReadOnly hwndhEdit2
   Gui, Add, Button, x82 w61, Start
   Gui, Show, w225
   Return
 
ButtonStart:
   GuiControl, Focus, Edit2
   GuiControlGet, Text1,, Edit1
   ControlGet, Count, LineCount,,, ahk_id %hEdit1%
   Loop, % Count
   {
      SendMessage, EM_LINEINDEX, A_Index - 1,,, ahk_id %hEdit1%
      Start := ErrorLevel
      SendMessage, EM_LINELENGTH, Start,,, ahk_id %hEdit1%
      Length := ErrorLevel
      End := Start + Length
      SendMessage, EM_LINEINDEX, A_Index,,, ahk_id %hEdit1%
      NextStart := ErrorLevel
      String := SubStr(Text1, 1, StrLen(String) + Length + (End = NextStart ? 0 : 1))
      GuiControl,, Edit2, %String%
      SendMessage, EM_SETSEL, End, End,, ahk_id %hEdit2%
      SendMessage, EM_SCROLLCARET,,,, ahk_id %hEdit2%
      Sleep, 3000
   }
   String = 
   Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-05-04T18:32:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48104#p48104</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Построчное копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48089#p48089" />
			<content type="html"><![CDATA[<p><a href="http://forum.script-coding.com/viewtopic.php?id=5760">http://forum.script-coding.com/viewtopic.php?id=5760</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2011-05-04T09:14:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48089#p48089</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Построчное копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48076#p48076" />
			<content type="html"><![CDATA[<p>Пожалуйста помогите!<br />Как сделать копирование каждые 3 сек. по очереди???</p>]]></content>
			<author>
				<name><![CDATA[coder_xxx]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26936</uri>
			</author>
			<updated>2011-05-03T17:28:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48076#p48076</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Построчное копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48067#p48067" />
			<content type="html"><![CDATA[<p>Ну примерно через 3 секунды</p><p>Это нужно для того чтобы успеть просмотреть то что копируется.</p>]]></content>
			<author>
				<name><![CDATA[coder_xxx]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26936</uri>
			</author>
			<updated>2011-05-03T15:35:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48067#p48067</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Построчное копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48066#p48066" />
			<content type="html"><![CDATA[<p>Тут только что-то одно возможно, либо сразу, либо по очереди. Если сразу — значит одновременно, если по очереди, то через какой-то промежуток времени. Вот я и спрашиваю, через какой? И зачем вообще нужна эта очерёдность? Какой в ней смысл?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-05-03T15:30:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48066#p48066</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Построчное копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48065#p48065" />
			<content type="html"><![CDATA[<p>Нет сразу, просто по очереди!</p>]]></content>
			<author>
				<name><![CDATA[coder_xxx]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26936</uri>
			</author>
			<updated>2011-05-03T15:25:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48065#p48065</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Построчное копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48064#p48064" />
			<content type="html"><![CDATA[<p>А когда — потом? Через час? Завтра?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-05-03T15:19:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48064#p48064</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Построчное копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48063#p48063" />
			<content type="html"><![CDATA[<p>После нажатия кнопки Start<br />спочатку попируется первая строка<br />потом вторая <br />и т.д.</p><p>А не все сразу!</p>]]></content>
			<author>
				<name><![CDATA[coder_xxx]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26936</uri>
			</author>
			<updated>2011-05-03T15:16:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48063#p48063</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Построчное копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48061#p48061" />
			<content type="html"><![CDATA[<p>Как это — по очереди? Что должно происходить после нажатия кнопки?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-05-03T14:55:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48061#p48061</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Построчное копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48060#p48060" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><div class="codebox"><pre><code>   Gui, Add, Edit, vEdit1 x0 y0 w110 h70, Первая строчка`nВторая строчка
   Gui, Add, Edit, vEdit2 ReadOnly x115 yp wp hp
   Gui, Add, Button, x82 w61, Start
   Gui, Show, w225
   Return
   
ButtonStart:
   GuiControlGet, Text,, Edit1
   GuiControl,, Edit2, % Text
   Return</code></pre></div></blockquote></div><p>Спасибо!<br />Но у меня еще вопрос а можно чтобы копировалось по очереди а не все разом?</p>]]></content>
			<author>
				<name><![CDATA[coder_xxx]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26936</uri>
			</author>
			<updated>2011-05-03T14:50:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48060#p48060</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Построчное копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48059#p48059" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>   Gui, Add, Edit, vEdit1 x0 y0 w110 h70, Первая строчка`nВторая строчка
   Gui, Add, Edit, vEdit2 ReadOnly x115 yp wp hp
   Gui, Add, Button, x82 w61, Start
   Gui, Show, w225
   Return
   
ButtonStart:
   GuiControlGet, Text,, Edit1
   GuiControl,, Edit2, % Text
   Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-05-03T14:39:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48059#p48059</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Построчное копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48057#p48057" />
			<content type="html"><![CDATA[<p>Я просто думал что с этим кодом у меня получится сделать то что я хочу но вижу не получилось!</p><p>Вот теперь прошу у Вас помощи помочь мне так сделать как я просил в 1 посте.</p>]]></content>
			<author>
				<name><![CDATA[coder_xxx]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26936</uri>
			</author>
			<updated>2011-05-03T14:19:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48057#p48057</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Построчное копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48055#p48055" />
			<content type="html"><![CDATA[<p>Всё равно не пойму, почему ты выбрал именно этот код? С таким же успехом можно было взять любой другой.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-05-03T14:16:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48055#p48055</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Построчное копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48054#p48054" />
			<content type="html"><![CDATA[<p>Вот я нашел его тут: <a href="http://forum.script-coding.com/viewtopic.php?id=5162">http://forum.script-coding.com/viewtopic.php?id=5162</a><br />Думал так реализовать но не получилось</p>]]></content>
			<author>
				<name><![CDATA[coder_xxx]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26936</uri>
			</author>
			<updated>2011-05-03T14:00:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48054#p48054</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Построчное копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48052#p48052" />
			<content type="html"><![CDATA[<p><strong>coder_xxx</strong>, я никак не пойму, что вот этот код делает:<br /></p><div class="codebox"><pre><code>button:
Gui,Submit,Nohide
New = %Clipboard%

    Loop, Parse, new
    {
        Char = %A_LoopField%
        If (Asc(Char) &lt; 128)
            PostMessage, 0x50,, 0x4090409,, A
        Else
            PostMessage, 0x50,, 0x4190419,, A
        Send, %Char%
        Sleep, 250
    }
WinClose</code></pre></div><p>Ты можешь объяснить? Желательно построчно!</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-05-03T13:51:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48052#p48052</id>
		</entry>
</feed>
