<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Получение данных из контрола Internet Explorer_Server]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=7930&amp;type=atom" />
	<updated>2013-02-20T20:58:25Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=7930</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=69678#p69678" />
			<content type="html"><![CDATA[<p>Нет, только из <em>Internet Explorer_Server</em>.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2013-02-20T20:58:25Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=69678#p69678</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=69677#p69677" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Попробовал</p></blockquote></div><p>А зачем? <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p></blockquote></div><p>Подумал, что этот код должен получать текст из любых контролов.<br />Что я неправильно понял?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-02-20T20:54:43Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=69677#p69677</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=69676#p69676" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Попробовал</p></blockquote></div><p>А зачем? <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2013-02-20T20:50:59Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=69676#p69676</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=69675#p69675" />
			<content type="html"><![CDATA[<p>Попробовал <br /></p><div class="codebox"><pre><code>ControlGet, OutputVar, Hwnd,, SysListView322, ahk_class µTorrent4823DF041B09</code></pre></div><p> и <br /></p><div class="quotebox"><blockquote><p>Error:&nbsp; No valid COM object!</p><p>	017: HTMLDocument := ComObjEnwrap(pdoc)<br />	018: ObjRelease(pdoc)&nbsp; <br />---&gt;	020: MsgBox,HTMLDocument.body.innerText<br />	021: HTMLDocument := &quot;&quot;<br />	167: ExitApp</p></blockquote></div><p>Если как в примере пишет то Контрол не найден (ну это понятно).</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-02-20T20:42:42Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=69675#p69675</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=68129#p68129" />
			<content type="html"><![CDATA[<p>Спасибо за помощь, получилось так :<br /></p><div class="codebox"><pre><code>
ControlGet, OutputVar, Hwnd,, Internet Explorer_Server2, ahk_class WindowsForms10.Window.8.app.0.378734a
if (OutputVar = &quot;&quot;)
{
   MsgBox, Контрол не найден!
   return
}

msg := DllCall(&quot;RegisterWindowMessage&quot;, Str, &quot;WM_HTML_GETOBJECT&quot;)
SendMessage, msg,,,, ahk_id %OutputVar%

DllCall(&quot;oleacc\ObjectFromLresult&quot;, Ptr, ErrorLevel, Ptr, 0, Ptr, 0, PtrP, pdoc)
        
HTMLDocument := ComObjEnwrap(pdoc)
ObjRelease(pdoc)

Ms := HTMLDocument.body.innerText

FoundPos := RegExMatch(Ms, &quot;Уникальность текста равна(.*)%&quot;,istext)

MsgBox, % istext1</code></pre></div>]]></content>
			<author>
				<name><![CDATA[metlick]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26594</uri>
			</author>
			<updated>2013-01-02T17:55:39Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=68129#p68129</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=68056#p68056" />
			<content type="html"><![CDATA[<p>В IE <em>Internet Explorer_Server1</em> (а не <strong>Explorer_Server1</strong>) — это поле, в котором отображаются страницы.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2012-12-30T22:44:43Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=68056#p68056</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=68055#p68055" />
			<content type="html"><![CDATA[<p>У меня Explorer_Server1 принадлежит строке поиска на одном из сайтов. Код выше получает текст всей страницы, кроме строки поиска. Или я чего-то недопонял...</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2012-12-30T22:39:55Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=68055#p68055</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=68054#p68054" />
			<content type="html"><![CDATA[<p>Дальше нужно получить связанный с ним COM-объект <a href="http://msdn.microsoft.com/en-us/library/aa752574%28VS.85%29.aspx">IHTMLDocument2</a> и воспользоваться его интерфейсом.<br />Для IE так:<br /></p><div class="codebox"><pre><code>ControlGet, OutputVar, Hwnd,, Internet Explorer_Server1, ahk_class IEFrame
if (OutputVar = &quot;&quot;)
{
   MsgBox, Контрол не найден!
   return
}

msg := DllCall(&quot;RegisterWindowMessage&quot;, Str, &quot;WM_HTML_GETOBJECT&quot;)
SendMessage, msg,,,, ahk_id %OutputVar%

DllCall(&quot;oleacc\ObjectFromLresult&quot;, Ptr, ErrorLevel, Ptr, 0, Ptr, 0, PtrP, pdoc)
        
HTMLDocument := ComObjEnwrap(pdoc)
ObjRelease(pdoc)

MsgBox, % HTMLDocument.body.innerText
HTMLDocument := &quot;&quot;</code></pre></div><p>На основе последнего примера <a href="http://l.autohotkey.net/docs/commands/ComObjQuery.htm#ExIE">отсюда</a>.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2012-12-30T22:29:53Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=68054#p68054</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=68053#p68053" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>.... или хэндл контрола ....</p></blockquote></div><p>Ок</p><div class="codebox"><pre><code>ControlGet, OutputVar, Hwnd,, Internet Explorer_Server1, ahk_class IEFrame
MsgBox %OutputVar%</code></pre></div><p>Узнали хэндл контрола, а дальше что с ним делать?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2012-12-30T22:03:28Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=68053#p68053</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=68052#p68052" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Честно говоря изначально задача была не вполне ясна...</p></blockquote></div><p>Насколько я понял, нужно извлечь текст из такого же контрола, как <em>Internet Explorer_Server</em> в IE.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2012-12-30T21:44:13Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=68052#p68052</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=68050#p68050" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Честно говоря изначально задача была не вполне ясна...</p><p><strong>ТС</strong><br />Думаю что непомешает скриншот результата на фоне AU3_Spy.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2012-12-30T21:26:50Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=68050#p68050</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=68049#p68049" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong>, так не выйдет. Попробуй таким макаром получить текст из контрола Internet Explorer_Server1 в IE.</p><p><strong>metlick</strong>, для решения твой задачи нужно знать заголовок окна (или его хэндл), которому принадлежит данный контрол, или хэндл контрола.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2012-12-30T21:13:20Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=68049#p68049</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=68048#p68048" />
			<content type="html"><![CDATA[<p><a href="http://www.script-coding.com/AutoHotkey/ControlGet.html">http://www.script-coding.com/AutoHotkey/ControlGet.html</a></p><p><a href="http://www.script-coding.com/AutoHotkey/ControlGetText.html">http://www.script-coding.com/AutoHotkey … tText.html</a></p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2012-12-30T19:44:37Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=68048#p68048</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=68047#p68047" />
			<content type="html"><![CDATA[<p>Здравствуйте, есть программа etxt по определению уникальности текста, возможно ли посредством ahk получать данные из этой программы в файл или буфер? Конкретно нужен процент уникальности текста по завершению проверки, программа выводит этот процент в форме которая определяется как:&nbsp; ClassNN: Internet Explorer_Server2<br />т.е. как я понял это html страничка во встроенном браузере. Натолкните на мысль в каком напровлении искать решение.</p>]]></content>
			<author>
				<name><![CDATA[metlick]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26594</uri>
			</author>
			<updated>2012-12-30T19:28:52Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=68047#p68047</id>
		</entry>
</feed>
