<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Перехват (Home) в IE]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=9480&amp;type=atom" />
	<updated>2014-04-13T09:10:10Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=9480</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перехват (Home) в IE]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81726#p81726" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>kursiv</strong>, отредактируйте свои сообщения. Грамоту (особенно заглавные буквы и знаки препинания) никто не отменял.<br /><strong><br />Запрещается отвечать в теме до исправления.</strong></span></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2014-04-13T09:10:10Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81726#p81726</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перехват (Home) в IE]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81725#p81725" />
			<content type="html"><![CDATA[<p>спасиб.</p>]]></content>
			<author>
				<name><![CDATA[kursiv]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32085</uri>
			</author>
			<updated>2014-04-13T09:07:02Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81725#p81725</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перехват (Home) в IE]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81724#p81724" />
			<content type="html"><![CDATA[<p>При клике сейчас должен появлятся тултип: </p><div class="codebox"><pre><code>ToolTip ^{vk53}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-04-13T08:46:56Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81724#p81724</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перехват (Home) в IE]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81723#p81723" />
			<content type="html"><![CDATA[<p>по клику открываться?</p>]]></content>
			<author>
				<name><![CDATA[kursiv]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32085</uri>
			</author>
			<updated>2014-04-13T08:45:15Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81723#p81723</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перехват (Home) в IE]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81722#p81722" />
			<content type="html"><![CDATA[<p>Всё также, должно работать.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-04-13T08:36:03Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81722#p81722</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перехват (Home) в IE]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81721#p81721" />
			<content type="html"><![CDATA[<p>вот</p>]]></content>
			<author>
				<name><![CDATA[kursiv]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32085</uri>
			</author>
			<updated>2014-04-13T08:25:22Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81721#p81721</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перехват (Home) в IE]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81720#p81720" />
			<content type="html"><![CDATA[<p>Запустите <a href="http://forum.script-coding.com/misc.php?action=pun_attachment&amp;item=689&amp;download=1">AhkSpy v1.047</a><br />Мыши наведите на кнопку, это данные с IE 11<br /><span class="postimg"><img src="http://i.imgur.com/ETnhAFu.png" alt="http://i.imgur.com/ETnhAFu.png" /></span><br />У Вас что видно?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-04-13T08:12:23Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81720#p81720</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перехват (Home) в IE]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81719#p81719" />
			<content type="html"><![CDATA[<p>никак не выходит.</p>]]></content>
			<author>
				<name><![CDATA[kursiv]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32085</uri>
			</author>
			<updated>2014-04-13T08:01:30Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81719#p81719</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перехват (Home) в IE]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81718#p81718" />
			<content type="html"><![CDATA[<p><strong>Irbis</strong><br />Кстати в таких случаях лучше не проверять окно на активность, ведь по кнопке можно кликнуть и в неактивном окне.<br /></p><div class="codebox"><pre><code>
#If IsHomeKey()
LButton:: ToolTip ^{vk53}
#If

IsHomeKey() { 
    MouseGetPos, , , WinId, ControlNN 
    if !InStr( ControlNN, &quot;ToolbarWindow&quot;)
        return 0
    WinGet, Process, ProcessName, ahk_id %WinId%
    if Process != iexplore.exe 
        return 0
    Acc := Acc_ObjectFromPoint(child)
    try value := Acc.accValue(child)
    if Not value
        try value := Acc.accName(child)
    if (value= &quot;Домой&quot;)
        return 1
    return 0
}
</code></pre></div><p> </p><br /><p>-------------------------</p><p>Хотел добавить, для мобильности библиотеку можно не юзать без особого ущерба для лаконичности:<br /></p><div class="codebox"><pre><code>
#If IsHomeKey()
LButton:: ToolTip ^{vk53}
#If

IsHomeKey() { 
    MouseGetPos, , , WinId, ControlNN 
    if !InStr( ControlNN, &quot;ToolbarWindow&quot;)
        return 0
    WinGet, Process, ProcessName, ahk_id %WinId%
    if Process != iexplore.exe 
        return 0
    return GetTextUnderMouse() = &quot;Домой&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(varChild,8+2*A_PtrSize,0)*0+&amp;varChild)=0
    Acc:=ComObjEnwrap(9,pacc,1), child:=NumGet(varChild,8,&quot;UInt&quot;)
    try value := Acc.accValue(child)
    if value =
        try value := Acc.accName(child) 
    return value
}
 
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-04-13T07:41:26Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81718#p81718</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перехват (Home) в IE]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81717#p81717" />
			<content type="html"><![CDATA[<p>Проверьте параметры, у меня 11.<br /></p><div class="codebox"><pre><code>ahk_class IEFrame
ahk_exe iexplore.exe 
ToolbarWindow</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-04-13T07:32:49Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81717#p81717</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перехват (Home) в IE]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81716#p81716" />
			<content type="html"><![CDATA[<p>скрипт запускается но неработает<br />не тот не другой.</p>]]></content>
			<author>
				<name><![CDATA[kursiv]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32085</uri>
			</author>
			<updated>2014-04-13T07:22:35Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81716#p81716</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перехват (Home) в IE]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81715#p81715" />
			<content type="html"><![CDATA[<p>Ошибка?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-04-13T07:18:25Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81715#p81715</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перехват (Home) в IE]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81714#p81714" />
			<content type="html"><![CDATA[<p>нет.(</p>]]></content>
			<author>
				<name><![CDATA[kursiv]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32085</uri>
			</author>
			<updated>2014-04-13T07:16:32Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81714#p81714</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перехват (Home) в IE]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81713#p81713" />
			<content type="html"><![CDATA[<p>Вы какой код запускаете? Этот работает:<br /></p><div class="codebox"><pre><code>
#If IsHomeKey()
LButton:: ToolTip ^{vk53}
#If

IsHomeKey() {
    if !WinActive(&quot;ahk_class IEFrame ahk_exe iexplore.exe&quot;)
        return 0
    MouseGetPos, , , WinId, ControlNN 
    if !InStr( ControlNN, &quot;ToolbarWindow&quot;)
        return 0
    WinGet, Process, ProcessName, ahk_id %WinId%
    if Process != iexplore.exe 
        return 0
    Acc := Acc_ObjectFromPoint(child)
    try value := Acc.accValue(child)
    if Not value
        try value := Acc.accName(child)
    if (value= &quot;Домой&quot;)
        return 1
    return 0
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-04-13T07:11:22Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81713#p81713</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перехват (Home) в IE]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81711#p81711" />
			<content type="html"><![CDATA[<p>Error at line 13.<br />Line Text: &quot;ToolbarWindow324&quot;)<br />Error: This line does not contain a recognized action.<br />The program will exit.</p><p>а вы на чем проверяете работоспособность скрипта?</p>]]></content>
			<author>
				<name><![CDATA[kursiv]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32085</uri>
			</author>
			<updated>2014-04-13T07:07:03Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81711#p81711</id>
		</entry>
</feed>
