<?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=10763&amp;type=atom" />
	<updated>2015-07-09T02:42:35Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10763</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение в переменную выделенного текста.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=95149#p95149" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>tuma4ok пишет:</cite><blockquote><p>Я имею ввиду в системе Windows. При нажатии клавиш ctrl+c помещает в буффер обмена.</p></blockquote></div><p>Помещает текст в буфер (с одной &quot;ф&quot;) программа, в которой вы выделили текст. Не AutoHotkey, не Windows, а программа, где вы выделили. Для этого она как-то должна понять, что юзер от неё этого хочет. Для этого и нужен посыл Ctrl-C, WM_COPY или какой-то команды из меню этой программы либо её тулбара.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2015-07-09T02:42:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=95149#p95149</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение в переменную выделенного текста.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=95145#p95145" />
			<content type="html"><![CDATA[<p>Ну так замените в этой цепочке</p><div class="codebox"><pre><code>Send, ^{vk**}</code></pre></div><p>на старый метод. Что это изменит?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2015-07-08T18:54:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=95145#p95145</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение в переменную выделенного текста.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=95144#p95144" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Send, ^{vk**}</code></pre></div><p> - я же писал что нельзя использовать симуляцию нажатия клавиш.</p>]]></content>
			<author>
				<name><![CDATA[tuma4ok]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32022</uri>
			</author>
			<updated>2015-07-08T18:52:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=95144#p95144</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение в переменную выделенного текста.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=95143#p95143" />
			<content type="html"><![CDATA[<p>Ну а тут тогда что:<br /></p><div class="codebox"><pre><code>!1::
LastClipBoard := ClipBoard
Send, ^{vk**} ; не помню код клавиши
Result := ClipBoard
ClipBoard := LastClipBoard
msgbox % result</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2015-07-08T18:49:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=95143#p95143</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение в переменную выделенного текста.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=95142#p95142" />
			<content type="html"><![CDATA[<p>Ну так можно сделать, но ведь я делаю на другую комбинацию клавиш. А чтобы все было верно, нужно заранее скопировать в буффер обмена.</p>]]></content>
			<author>
				<name><![CDATA[tuma4ok]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32022</uri>
			</author>
			<updated>2015-07-08T18:46:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=95142#p95142</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение в переменную выделенного текста.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=95140#p95140" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>ClipBoard := LastClipBoard</code></pre></div><p>А это тогда что?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2015-07-08T18:43:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=95140#p95140</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение в переменную выделенного текста.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=95139#p95139" />
			<content type="html"><![CDATA[<p>Не судьба сделать толковый переводчик. Ну что же, сделаю на старом методе.<br />1) Копируем текст в буффер обмена.<br />2) Нажимаем комбинацию клавиш.<br />Минус в том, что мы теряем старый буффер обмена.</p>]]></content>
			<author>
				<name><![CDATA[tuma4ok]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32022</uri>
			</author>
			<updated>2015-07-08T18:38:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=95139#p95139</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение в переменную выделенного текста.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=95137#p95137" />
			<content type="html"><![CDATA[<p>Ну и ещё много какие приложения не понимают WM_COPY.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2015-07-08T18:36:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=95137#p95137</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение в переменную выделенного текста.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=95134#p95134" />
			<content type="html"><![CDATA[<p>Но текст из браузера оно не получает. Странно..</p>]]></content>
			<author>
				<name><![CDATA[tuma4ok]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32022</uri>
			</author>
			<updated>2015-07-08T18:25:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=95134#p95134</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение в переменную выделенного текста.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=95133#p95133" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>!1::
    MouseGetPos,,, WinUnderMouse, CtrlUnderMouse,
    SendMessage, 0x0301,,, %CtrlUnderMouse%, AHK_ID %WinUnderMouse%
    MsgBox, %Clipboard%
Return</code></pre></div><p>Эврика! Нашёл вот такой пример, копирует текст без симуляции нажатий клавиш. Но если ничего не выделено, выдает старый результат. Может как-то сможете улучшить.</p>]]></content>
			<author>
				<name><![CDATA[tuma4ok]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32022</uri>
			</author>
			<updated>2015-07-08T18:21:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=95133#p95133</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение в переменную выделенного текста.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=95130#p95130" />
			<content type="html"><![CDATA[<p>Понятно. Тоже задавался таким вопросом, но ответа не нашёл.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2015-07-08T17:57:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=95130#p95130</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение в переменную выделенного текста.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=95129#p95129" />
			<content type="html"><![CDATA[<p>Может я вас немного запутал. Можно чтобы помещало текст в буффер, главное чтобы без симуляции нажатий клавиш.</p>]]></content>
			<author>
				<name><![CDATA[tuma4ok]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32022</uri>
			</author>
			<updated>2015-07-08T17:55:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=95129#p95129</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение в переменную выделенного текста.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=95126#p95126" />
			<content type="html"><![CDATA[<p>AutoHotkey в принципе предполагает разговор про Windows.<br />Ну есть какое то сообщение типа WM_COPY, хотя до конца не уверен что это тоже самое, только разницы нет, если программа и настроена его понимать, то она всё равно по такой или иной команде копирования, поместит текст в буфер.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2015-07-08T17:28:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=95126#p95126</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение в переменную выделенного текста.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=95124#p95124" />
			<content type="html"><![CDATA[<p>Я имею ввиду в системе Windows. При нажатии клавиш ctrl+c помещает в буффер обмена. Может как-то можно симулировать эти действия? Без симуляции нажатия клавиш.</p>]]></content>
			<author>
				<name><![CDATA[tuma4ok]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32022</uri>
			</author>
			<updated>2015-07-08T17:22:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=95124#p95124</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение в переменную выделенного текста.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=95123#p95123" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>tuma4ok пишет:</cite><blockquote><p>Но ведь как-то текст попадает в ClipBoard при копировании.</p></blockquote></div><p>Программа его туда и помещает, получив от вас Ctrl-C.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2015-07-08T16:33:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=95123#p95123</id>
		</entry>
</feed>
