<?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=16687&amp;type=atom" />
	<updated>2021-11-01T07:28:44Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16687</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выполнение функции в неактивном окне.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150355#p150355" />
			<content type="html"><![CDATA[<p>Чтобы посылать клавиши в неактивное окно, можно использовать ControlSend, но не факт, что будет работать, так как некоторые программы реагируют на горячие клавиши только при активном окне.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-11-01T07:28:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150355#p150355</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выполнение функции в неактивном окне.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150353#p150353" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Какую тогда необходимо использовать, как вы считаете?</p>]]></content>
			<author>
				<name><![CDATA[Bormotos]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42082</uri>
			</author>
			<updated>2021-11-01T06:38:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150353#p150353</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выполнение функции в неактивном окне.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150298#p150298" />
			<content type="html"><![CDATA[<p>Команда Send отправляет клавиши в активное окно.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-10-29T08:04:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150298#p150298</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выполнение функции в неактивном окне.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150297#p150297" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Переделал. Спасибо за замечание.</p>]]></content>
			<author>
				<name><![CDATA[Bormotos]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42082</uri>
			</author>
			<updated>2021-10-29T06:14:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150297#p150297</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выполнение функции в неактивном окне.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150264#p150264" />
			<content type="html"><![CDATA[<p><strong>Bormotos</strong>, добро пожаловать на форум!<br />Ознакомьтесь, пожалуйста, с <a href="https://forum.script-coding.com/misc.php?action=rules">правилами</a>, отредактируйте свой пост. Обратите внимание на оформление <a href="https://forum.script-coding.com/misc.php?action=rules#code-formatting">кода</a>.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-10-28T12:07:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150264#p150264</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Выполнение функции в неактивном окне.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150257#p150257" />
			<content type="html"><![CDATA[<p>Комрады, всем привет.<br />Есть приложение (Interaction Desktop), в которое поступают звонки.<br />При поступлении звонка, так-же открывается диалоговое окно браузера (с нужной инфой по звонку), то есть окно приложения - становится неактивным, в то время как окно браузера - таковым.<br />Ломаю голову над скриптом, функцией которого &quot;поднятие трубки&quot; (и подобного).<br />Если переключаюсь (разворачиваю окно программы), скрипт работает. <br />Если нажимать заданные на действия в программе клавиши в ином рабочем пространстве (браузере, в кокой-либо папке и т.п.) - ничего не происходит).<br /></p><div class="codebox"><pre><code>; AutoHotkey InDesk

End::
IfWinExist , ahk_class Interaction Desktop
send, {Ctrl down}{d}{Ctrl up}
return

PgUp::
IfWinExist, ahk_class Interaction Desktop
send, {Ctrl down}{p}{Ctrl up}
return

PgDn::
IfWinExist, ahk_class Interaction Desktop
send, {Ctrl down}{h}{Ctrl up}
return</code></pre></div><p>Перепробовал все возможные привязки, ahk_exe, IfWinExist, IfNotWinExist, IfWinActive и прч.</p>]]></content>
			<author>
				<name><![CDATA[Bormotos]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42082</uri>
			</author>
			<updated>2021-10-28T08:43:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150257#p150257</id>
		</entry>
</feed>
