<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Запуск словаря Context из Opera]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=8839</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8839&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Запуск словаря Context из Opera».]]></description>
		<lastBuildDate>Thu, 31 Oct 2013 09:16:50 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Запуск словаря Context из Opera]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=76748#p76748</link>
			<description><![CDATA[<p>P. S. </p><p>Вообще у словаря Context 7.0 есть встроенное сочетание Ctrl+C+C, поэтому можно делать проще:<br /></p><div class="codebox"><pre><code>
#a::
IfWinActive , ahk_class OperaWindowClass
    SendInput , ^{c 2}
</code></pre></div><p>Но почему-то (так сделана программа) оно хорошо работает только если словарь свёрнут (или ещё не запущен): когда не свёрнут, а просто находится &quot;сзади&quot; (накрыт др. окнами), то при его вызове он начинает сначала сворачиваться, а потом разворачиваться, что не очень красиво. Поэтому открытие перевода с использованием скрипта AHK (представленного в пред. сообщении выше) происходит быстрее.</p>]]></description>
			<author><![CDATA[null@example.com (o5andrey)]]></author>
			<pubDate>Thu, 31 Oct 2013 09:16:50 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=76748#p76748</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Запуск словаря Context из Opera]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=76746#p76746</link>
			<description><![CDATA[<p>Большое спасибо, работает. Пустяк, а мог бы долго биться...</p>]]></description>
			<author><![CDATA[null@example.com (o5andrey)]]></author>
			<pubDate>Thu, 31 Oct 2013 08:04:13 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=76746#p76746</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Запуск словаря Context из Opera]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=76745#p76745</link>
			<description><![CDATA[<p>Уберите пробелы между WinActive и её параметрами.</p>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Thu, 31 Oct 2013 07:52:30 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=76745#p76745</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Запуск словаря Context из Opera]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=76744#p76744</link>
			<description><![CDATA[<p>Скажите пожалуйста почему у меня теперь сочетание для перевода работает в любом месте, а не только в тех окнах которые я указал:<br /></p><div class="codebox"><pre><code>
#vk5A:: ; win+z - перевести выделенное слово/словосочетание
IfWinActive ahk_class HH Parent ; в справке chm
    SendInput {appskey}{Down 7}{Enter}
If WinActive (&quot;ahk_class OperaWindowClass&quot;) or WinActive (&quot;ahk_class MozillaWindowClass&quot;)  ;  &lt;---
{
    SendInput , ^{vk43}
    IfWinNotExist , ahk_class Informatic_Context40MainWindowClass 
    {
        Run , &quot;F:\Program Files\Informatic\Context 7.0\context.exe&quot;
        WinWaitActive , ahk_class Informatic_Context40MainWindowClass
    }
    WinActivate , ahk_class Informatic_Context40MainWindowClass
    SendInput , ^{vk56}{Down}{Enter}
}
return

#vk58:: ; win+x - открыть закладки в Opera
IfWinActive ahk_class OperaWindowClass
    SendInput {Ctrl Down}{Shift Down}{vk42}{Ctrl Up}{Shift Up}{Click 414, 111}{Click 54, 157}{Click 414, 111}{End}{F8}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (o5andrey)]]></author>
			<pubDate>Thu, 31 Oct 2013 07:26:37 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=76744#p76744</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Запуск словаря Context из Opera]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=76710#p76710</link>
			<description><![CDATA[<p>Да, так и есть, язык ввода был RU. Всё вроде работает, спасибо.</p>]]></description>
			<author><![CDATA[null@example.com (o5andrey)]]></author>
			<pubDate>Wed, 30 Oct 2013 10:12:25 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=76710#p76710</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Запуск словаря Context из Opera]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=76707#p76707</link>
			<description><![CDATA[<p>Не очень понятно, в чём на данный момент проблемы. Неработа ^C и т.п. может быть связана с тем, что язык ввода в тот момент русский. Лучше обозначать буквенные клавиши виртуальными кодами.<br /></p><div class="codebox"><pre><code>
Send, ^{vk43}       ; Ctrl-C
Send, ^{vk56}       ; Ctrl-V
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Wed, 30 Oct 2013 09:39:47 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=76707#p76707</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Запуск словаря Context из Opera]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=76692#p76692</link>
			<description><![CDATA[<p>Ой... else не надо, так вот у меня:<br /></p><div class="codebox"><pre><code>
#x::
IfWinActive , ahk_class OperaWindowClass 
{
    SendInput , ^c
    IfWinNotExist , ahk_class Informatic_Context40MainWindowClass 
    {
        Run , &quot;F:\Program Files\Informatic\Context 7.0\context.exe&quot;
        WinWaitActive , ahk_class Informatic_Context40MainWindowClass
    }
    WinActivate , ahk_class Informatic_Context40MainWindowClass
    SendInput , {Ctrl Down}{v down}{Ctrl Up}{v Up}{Enter} ; не посылает...
}
return
</code></pre></div><p>Что-то перестало работать и когда словарь есть свёрнутый... Вставляет то что было в буфере раньше.</p><p>...</p><p>...Нет, так работает и после запуска словаря, как я хотел, но видимо почему-то&nbsp; не посылает копирование.</p>]]></description>
			<author><![CDATA[null@example.com (o5andrey)]]></author>
			<pubDate>Wed, 30 Oct 2013 08:14:56 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=76692#p76692</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Запуск словаря Context из Opera]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=76688#p76688</link>
			<description><![CDATA[<p>Благодарю за ответ. Поменял RunWait на просто Run, результат тот же - запускается, активируется окно словаря но нет ввода. Я пробовал ставить sleep чтобы словарь точно загрузился, но не работает...<br />Скажите, а завершение чего ждёт RunWait? Той программы которую запускает...? Я думал что ждёт пока запускаемое окно не загрузится полностью, проверяет готово ли оно к обратной связи.</p>]]></description>
			<author><![CDATA[null@example.com (o5andrey)]]></author>
			<pubDate>Wed, 30 Oct 2013 07:47:54 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=76688#p76688</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Запуск словаря Context из Opera]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=76686#p76686</link>
			<description><![CDATA[<p>RunWait ждёт завершения запущенной программы. Т.е. дальше выполнение кода не идёт.</p>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Wed, 30 Oct 2013 07:27:57 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=76686#p76686</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Запуск словаря Context из Opera]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=76682#p76682</link>
			<description><![CDATA[<p>Здравствуйте, скажите&nbsp; пожалйста почему у меня не работает этот скрипт:<br /></p><div class="codebox"><pre><code>
#x::
IfWinActive , ahk_class OperaWindowClass 
{
    SendEvent , ^c
    IfWinNotExist , ahk_class Informatic_Context40MainWindowClass 
    {
        RunWait , &quot;F:\Program Files\Informatic\Context 7.0\context.exe&quot;
        WinWaitActive , ahk_class Informatic_Context40MainWindowClass
        return
    }
    else
    {
        WinActivate , ahk_class Informatic_Context40MainWindowClass
        SendEvent , {Ctrl Down}{v down}{Ctrl Up}{v Up}{Enter} ; не посылает...
        return
    }
}
return
</code></pre></div><p>Когда словарь уже запущен, всё работает, но когда нет, то скрипт только запускает словарь. И после этого запуска сочетание перестаёт работать.<br />Спасибо.</p>]]></description>
			<author><![CDATA[null@example.com (o5andrey)]]></author>
			<pubDate>Wed, 30 Oct 2013 06:54:01 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=76682#p76682</guid>
		</item>
	</channel>
</rss>
