<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Использование - GUI Control Types ActiveX]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=8206&amp;type=atom" />
	<updated>2019-11-02T17:42:40Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=8206</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Использование - GUI Control Types ActiveX]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=136509#p136509" />
			<content type="html"><![CDATA[<p>Спасибо, забыл про версию IE.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-11-02T17:42:40Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=136509#p136509</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Использование - GUI Control Types ActiveX]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=136508#p136508" />
			<content type="html"><![CDATA[<p>У меня на win10 при таком коде фокус не снимается:<br /></p><div class="codebox"><pre><code>FixIE()
URL = https://translate.google.ru/#auto/ru/ 

Gui Add, ActiveX, w900 h520 voIE HWNDhoIE, Shell.Explorer 
oIE.Navigate(URL) 
Gui, Show


FixIE() {
	Key := &quot;Software\Microsoft\Internet Explorer\MAIN&quot;
	. &quot;\FeatureControl\FEATURE_BROWSER_EMULATION&quot;, ver := 11000
	If A_IsCompiled
		ExeName := A_ScriptName
	Else
		SplitPath, A_AhkPath, ExeName
	RegRead, value, HKCU, %Key%, %ExeName%
	If (value != ver)
		RegWrite, REG_DWORD, HKCU, %Key%, %ExeName%, %ver%
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-11-02T16:57:17Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=136508#p136508</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Использование - GUI Control Types ActiveX]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=136507#p136507" />
			<content type="html"><![CDATA[<p>У меня на win 10 отображает только это:</p><p><span class="postimg"><img src="https://i.imgur.com/8pocwKa.png" alt="https://i.imgur.com/8pocwKa.png" /></span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-11-02T16:49:35Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=136507#p136507</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Использование - GUI Control Types ActiveX]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=136506#p136506" />
			<content type="html"><![CDATA[<p>При вводе текста, после автоперевода, снимается фокус с поля ввода, в IE такого не происходит. Кто подскажет как лечить?<br /></p><div class="codebox"><pre><code>URL = https://translate.google.ru/#auto/ru/ 

Gui Add, ActiveX, w900 h520 voIE HWNDhoIE, Shell.Explorer 
oIE.Navigate(URL) 
Gui, Show</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-11-02T16:23:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=136506#p136506</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Использование - GUI Control Types ActiveX]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=121628#p121628" />
			<content type="html"><![CDATA[<p>Не могу разобратся с customevent IE=9.<br /></p><div class="codebox"><pre><code>
Gui, Add, ActiveX, w333 h222 vIE, about:&lt;!DOCTYPE html&gt;&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=9&quot;&gt;
Gui, show
global IE, oDoc

oDoc := IE.document
  ;	IE.Silent := 1
  
html =
(
&lt;script id=&#039;capturer&#039; language=&#039;JavaScript&#039;&gt;
   var saved_event_context = null;
  function EventsCommonHandler() {
     saved_event_context = document.createEventObject(window.event);
     capturer.click();
	 alert(&quot;Сейчас будет error&quot;);
	 capturer.dispatchEvent(&quot;myevent&quot;);
   }
   window.onclick = function() {
		EventsCommonHandler();
   }
&lt;/script&gt;
  
&lt;script language=&#039;JavaScript&#039;&gt;
	capturer.addEventListener(&quot;myEvent&quot;, function() {alert(&#039;Спасибо!&#039;)});

&lt;/script&gt;
	
)

oDoc.Write(html)
oDoc.Close()
capturer := oDoc.getElementById(&quot;capturer&quot;)
ComObjConnect(capturer, MyEvents)

html =
(
&lt;button id=&#039;btn1&#039;&gt;Кнопка&lt;/button&gt;
)

oDoc.body.InnerHtml := html
return

1:: msgbox % oDoc.documentMode 

Class MyEvents {
	onclick() {
	  event := oDoc.Script.saved_event_context
	  MsgBox % &quot;Произошло событие &#039;&quot; . event.type . &quot;&#039;&quot;
		  . &quot; в элементе &#039;&quot; . event.srcElement.id . &quot;&#039;.&quot;
	}
	myevent() {
		MsgBox myevent
	}
}

Escape:: 
GuiClose:
    ExitApp
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2017-11-25T17:42:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=121628#p121628</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Использование - GUI Control Types ActiveX]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=121521#p121521" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>А каких методы, свойства нет в htmlfile?</p></blockquote></div><p>Например silent.<br /></p><div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Так в 136 всё очень подробно.</p></blockquote></div><p>То есть ты хочешь заменить capturer.click() на capturer.nazhal()?<br />Тогда можно через customevent, только он вряд ли поддерживается с FixIe(0).<br /><a href="https://developer.mozilla.org/ru/docs/Web/API/CustomEvent/CustomEvent">https://developer.mozilla.org/ru/docs/W … ustomEvent</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-11-23T10:26:33Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=121521#p121521</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Использование - GUI Control Types ActiveX]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=121520#p121520" />
			<content type="html"><![CDATA[<p>А каких методы, свойства нет в htmlfile?</p><div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Приведи пример, а то нпонятно.</p></blockquote></div><p>Так в 136 всё очень подробно.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2017-11-23T10:13:55Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=121520#p121520</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Использование - GUI Control Types ActiveX]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=121519#p121519" />
			<content type="html"><![CDATA[<p>У webbrowser есть методы, свойства, если оин нужны, а в document такого не добиться, значит это плюсы:<br /><a href="https://msdn.microsoft.com/en-us/library/aa752040(v=vs.85).aspx">https://msdn.microsoft.com/en-us/librar … s.85).aspx</a><br /></p><div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>как вызвать метод у которого будет то имя, которое я захочу.</p></blockquote></div><p>Приведи пример, а то нпонятно.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-11-23T10:09:36Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=121519#p121519</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Использование - GUI Control Types ActiveX]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=121518#p121518" />
			<content type="html"><![CDATA[<p>Просто интересно, ну и было бы удобнее.<br />Конечно и благодаря примеру можно осуществить всё необходимое.</p><p>По твоему есть плюсы webbrowser перед htmlfile?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2017-11-23T09:49:42Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=121518#p121518</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Использование - GUI Control Types ActiveX]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=121517#p121517" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Кстати не в курсе как отключить ошибки javascript, onerror не работает.</p></blockquote></div><p>У htmlfile не знаю.<br />У webbrowser есть свойство silent для этого.<br /></p><div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>как вызвать метод у которого будет то имя, которое я захочу.</p></blockquote></div><p>А зачем?</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-11-23T09:43:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=121517#p121517</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Использование - GUI Control Types ActiveX]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=121516#p121516" />
			<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>2017-11-23T09:19:00Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=121516#p121516</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Использование - GUI Control Types ActiveX]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=121515#p121515" />
			<content type="html"><![CDATA[<p>Кстати не в курсе как отключить ошибки javascript, onerror не работает.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2017-11-23T09:17:55Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=121515#p121515</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Использование - GUI Control Types ActiveX]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=121512#p121512" />
			<content type="html"><![CDATA[<p>Я так понял, что ты спрашивал, какие есть еще события в джаваскрит помимо click().</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-11-23T08:43:33Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=121512#p121512</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Использование - GUI Control Types ActiveX]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=121510#p121510" />
			<content type="html"><![CDATA[<p>Ты про то что задавать имена существующих? Например onmessage так не вызывается capturer.message();</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2017-11-23T08:36:06Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=121510#p121510</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Использование - GUI Control Types ActiveX]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=121506#p121506" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Есть варианты другой обратной связи?</p></blockquote></div><p><a href="http://help.dottoro.com/larrqqck.php">http://help.dottoro.com/larrqqck.php</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-11-23T07:28:24Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=121506#p121506</id>
		</entry>
</feed>
