<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: ie com, block exit tabs]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14294&amp;type=atom" />
	<updated>2018-11-03T15:27:06Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14294</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ie com, block exit tabs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=129612#p129612" />
			<content type="html"><![CDATA[<p><a href="http://forum.script-coding.com/viewtopic.php?pid=125035#p125035">http://forum.script-coding.com/viewtopi … 35#p125035</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-11-03T15:27:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=129612#p129612</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ie com, block exit tabs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=129611#p129611" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>Спасибо! Но что то не получается, на примере&nbsp; - кнопка &quot;создать вкладку&quot;</p><div class="codebox"><pre><code>
#If IsHomeKey()
LButton:: ToolTip 
#If

IsHomeKey() { 
    MouseGetPos, , , WinId, ControlNN 
    if !InStr( ControlNN, &quot;DirectUIHWND&quot;)
        return 0
    WinGet, Process, ProcessName, ahk_id %WinId%
    if Process != iexplore.exe 
        return 0
    return GetTextUnderMouse() = &quot;Создать вкладку (CTRL+T)&quot; ? 1 : 0
} 

GetTextUnderMouse()  {
    Static h
    If !h
        h := DllCall(&quot;LoadLibrary&quot;,&quot;Str&quot;,&quot;oleacc&quot;,&quot;Ptr&quot;)
    If DllCall(&quot;oleacc\AccessibleObjectFromPoint&quot;
                , &quot;Int64&quot;, DllCall(&quot;GetCursorPos&quot;,&quot;Int64*&quot;,pt)+pt
                , &quot;Ptr*&quot;, pacc, &quot;Ptr&quot;, VarSetCapacity(varParent,8+2*A_PtrSize,0)*0+&amp;varParent)=0
    Acc:=ComObjEnwrap(9,pacc,1), Parent:=NumGet(varParent,8,&quot;UInt&quot;)
    try value := Acc.accValue(Parent)
    if value =
        try value := Acc.accName(Parent) 
    return value
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2018-11-03T13:52:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=129611#p129611</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ie com, block exit tabs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=129610#p129610" />
			<content type="html"><![CDATA[<p>Изучайте:<br /><a href="http://forum.script-coding.com/viewtopic.php?id=9480">http://forum.script-coding.com/viewtopic.php?id=9480</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-11-03T12:17:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=129610#p129610</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: ie com, block exit tabs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=129606#p129606" />
			<content type="html"><![CDATA[<p>Добрый день! Подскажите пож-та, возможно ли, поставить запрет на закрытие вкладок в ie? Заранее спасибо!</p><div class="codebox"><pre><code>
ie := ComObjCreate(&quot;InternetExplorer.Application&quot;)
ie.Visible := true

while ie.readystate &lt;&gt; 4
	continue

ie.Navigate(&quot;https://www.yandex.ru/&quot;)
ie.Navigate(&quot;https://www.mail.ru/&quot;,2048)
ie.Navigate(&quot;https://www.rambler.ru/&quot;,2048)

WinSet, Style, -0x80000, ahk_class IEFrame ; блокирует закрытие IE



</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2018-11-03T04:54:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=129606#p129606</id>
		</entry>
</feed>
