<?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=8882&amp;type=atom" />
	<updated>2013-11-11T15:16:34Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8882</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=77157#p77157" />
			<content type="html"><![CDATA[<p>Тогда я не знаю как еще можно получить этот текст...</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2013-11-11T15:16:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=77157#p77157</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=77136#p77136" />
			<content type="html"><![CDATA[<p>&quot;Этот контрол не поддерживается:SAPTreeList4&quot;</p>]]></content>
			<author>
				<name><![CDATA[bobbypchel]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31102</uri>
			</author>
			<updated>2013-11-11T06:59:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=77136#p77136</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=77088#p77088" />
			<content type="html"><![CDATA[<p>Можете сейчас попробовать.</p><div class="codebox"><pre><code>F4::
clipboard=
return

F5::
mousegetpos,,,id,ctrl
ControlGet, OutputVar, List, Selected, %ctrl%, ahk_id %id%
if errorlevel
{
  tooltip,Этот контрол не поддерживается: %ctrl%
  sleep,3000
  tooltip
}
else
{
  clipboard.=OutputVar &quot;`n&quot;
  send, {Down}
  tooltip,%clipboard%
  settimer,tooltipoff,-1000
}
return

tooltipoff:
tooltip, Теперь вставте куда вам нужно обычной вставкой.`n`nНажмите F4 для очистки буфера.
sleep,3000
tooltip
return
</code></pre></div><p>Кстати универсальный скрипт получился - из любых подобных списков можно копировать.</p><p>OFF:<br />Мне просто делать нечего...</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2013-11-08T14:48:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=77088#p77088</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=77087#p77087" />
			<content type="html"><![CDATA[<p>Спасибо! В понедельник попробую</p>]]></content>
			<author>
				<name><![CDATA[bobbypchel]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31102</uri>
			</author>
			<updated>2013-11-08T14:47:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=77087#p77087</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=77086#p77086" />
			<content type="html"><![CDATA[<p>Тут нужно использовать &quot;ControlGet&quot; с параметрами &quot;List&quot; и &quot;Selected&quot;.</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2013-11-08T14:35:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=77086#p77086</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=77085#p77085" />
			<content type="html"><![CDATA[<p>Да, по одной, конечно, выделяются. Но по несколько за раз выделяются только полные строки.</p>]]></content>
			<author>
				<name><![CDATA[bobbypchel]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31102</uri>
			</author>
			<updated>2013-11-08T14:28:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=77085#p77085</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=77083#p77083" />
			<content type="html"><![CDATA[<p>Сделайте еще скриншот с запущенным скриптом:<br />Только мышку держите над тем что копировать.<br /></p><div class="codebox"><pre><code>#SingleInstance,Force
Gui,5:-Caption +Border +ToolWindow +AlwaysOnTop
Gui,5:Color,EEEEEE
Gui,5:Margin,0,0
Gui,5:Show,x0 y0 w1 h1 NoActivate,Рамка
WinGet,eguiid,id,Рамка
WinSet,TransColor,EEEEEE,ahk_id %eguiid%

loop
{
  sleep,20
  MouseGetPos,exc,eyc,ewinid,eCtrl
  winGetPos,eWinX,eWinY,,,ahk_id %ewinid%
  ControlGetPos,eCtrlX,eCtrlY,eCtrlW,eCtrlH,%eCtrl%,ahk_id %ewinid%
  ex:=eWinX+eCtrlX
  y:=eWinY+eCtrlY
  if (ex!=&quot;&quot; and ey!=&quot;&quot; and eCtrlW!=&quot;&quot; and eCtrlH!=&quot;&quot;)
    Gui,5:Show,x%eX% y%eY% w%eCtrlW% h%eCtrlH% NoActivate,Рамка
  tooltip,%eCtrl%
}
return

</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2013-11-08T14:24:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=77083#p77083</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=77082#p77082" />
			<content type="html"><![CDATA[<p>Всё же ячейки в САПе выделяются, но только по одной?</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2013-11-08T14:21:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=77082#p77082</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=77080#p77080" />
			<content type="html"><![CDATA[<p>Скриншот</p><p>В коде случайно дважды {down}, скрипт с одиночным, разумеется</p>]]></content>
			<author>
				<name><![CDATA[bobbypchel]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31102</uri>
			</author>
			<updated>2013-11-08T14:14:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=77080#p77080</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=77078#p77078" />
			<content type="html"><![CDATA[<p>Можно увидеть скриншот &quot;SAP-а&quot;, откуда будет копирование?</p><p>Какие-то важные данные &quot;затрите&quot; на всякий случай, или пустой откройте.</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2013-11-08T14:08:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=77078#p77078</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Копирование из одного окна в другое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=77076#p77076" />
			<content type="html"><![CDATA[<p>Есть необходимость из SAPа скопировать много ячеек в Excel. В САПе они не выделяются =&gt; очень геморно и долго. Попытался на скорую руку освоить программу, чтобы быстро копировать по одной - не получилось. <br /></p><div class="codebox"><pre><code>F7::SendEvent, !{tab}{down}{down}^c!{tab}{down}^v</code></pre></div><p> <br />По моей логике, при нажатии Ф7 - мы Альттабаемся, спускаемся на ячейку вниз, копируем, снова альттабаемся, спускаемся на ячейку и вставляем. Если проводить манипуляции вручную - все работает. Подскажите, пожалуйста, почему не работает скрипт?</p>]]></content>
			<author>
				<name><![CDATA[bobbypchel]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31102</uri>
			</author>
			<updated>2013-11-08T13:45:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=77076#p77076</id>
		</entry>
</feed>
