<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Отключение ПКМ во всех GUI ActiveX]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=15974</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=15974&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Отключение ПКМ во всех GUI ActiveX».]]></description>
		<lastBuildDate>Sun, 10 Jan 2021 13:28:04 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Отключение ПКМ во всех GUI ActiveX]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=144629#p144629</link>
			<description><![CDATA[<p><strong>serzh82saratov</strong> Идеально, прям сочетание первого и второго способа. Спасибо!</p>]]></description>
			<author><![CDATA[null@example.com (Botsy)]]></author>
			<pubDate>Sun, 10 Jan 2021 13:28:04 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=144629#p144629</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отключение ПКМ во всех GUI ActiveX]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=144622#p144622</link>
			<description><![CDATA[<div class="codebox"><pre><code>#If IsCurrentProcess()
RButton::Return
#If
 
IsCurrentProcess() {
	Static AHKPID := DllCall(&quot;GetCurrentProcessId&quot;)
    MouseGetPos,,, WinID
	WinGet, WinPID, PID, ahk_id %WinID%
	Return (WinPID == AHKPID)
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sun, 10 Jan 2021 07:46:27 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=144622#p144622</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Отключение ПКМ во всех GUI ActiveX]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=144614#p144614</link>
			<description><![CDATA[<p>Привет, подскажите как можно отключить пкм во всех gui activex ? </p><p>Пробовал следующее:<br />1) Отключал пкм, когда процесс этого окна был активен. В худшем случае так и оставлю, но лучше, чтобы в окне пкм не работал, а в других местах работал. <br /></p><div class="codebox"><pre><code>
Gui, Parent: New, ,LB
Gui, Parent: -DPIScale
Gui, Parent: Margin, 0, 0
Gui, Parent: Add, ActiveX, w1080 h854 vWB, about:&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt; 
WB.document.write(html)
....
Gui, Parent: Show

AHKPID := DllCall(&quot;GetCurrentProcessId&quot;)
Hotkey, IfWinActive, % AHKPID
Hotkey, RButton, Rbt_disabled, on

Rbt_disabled:
return
</code></pre></div><p>2) Отключал пкм только в родительском окне, вне окна пкм работал. Во всех дочерних окнах, пкм работает, а надо, чтобы тоже не работал.<br /><strong>Род. окно:</strong><br /></p><div class="codebox"><pre><code>
Gui, Parent: New, ,LB
Gui, Parent: -DPIScale +hwndID
Gui, Parent: Margin, 0, 0
Gui, Parent: Add, ActiveX, w1080 h854 vWB, about:&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt; 
WB.document.write(html)
....
Gui, Parent: Show

global AHKID := ID

#If OverScreen(AHKID)
RButton::
return
#If

OverScreen(hwndID) {
    MouseGetPos,,, wID
return (wID == AHKID)
}
</code></pre></div><p><strong>Доч. окно:</strong><br /></p><div class="codebox"><pre><code>
Gui, B: New, , Д
Gui, B: Margin, 0, 0
Gui, B: Add, ActiveX, w550 h350 vWBB, about:&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt; 
WBB.document.write(html)
WBB.document.getElementById(&quot;ex&quot;).addEventListener(&quot;mouseup&quot;, Func(&quot;OnClose&quot;))
Gui, Buy: Show
</code></pre></div><p>Не хотелось бы дублировать функцию и #if для каждого род. окна, т.к. их может быть много. Может есть какой-нибудь вариант ?<br />Буду благодарен за помощь или совет.</p>]]></description>
			<author><![CDATA[null@example.com (Botsy)]]></author>
			<pubDate>Sat, 09 Jan 2021 21:55:33 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=144614#p144614</guid>
		</item>
	</channel>
</rss>
