<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Получение данных из контрола Internet Explorer_Server]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=7930</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=7930&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Получение данных из контрола Internet Explorer_Server».]]></description>
		<lastBuildDate>Wed, 20 Feb 2013 20:58:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=69678#p69678</link>
			<description><![CDATA[<p>Нет, только из <em>Internet Explorer_Server</em>.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 20 Feb 2013 20:58:25 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=69678#p69678</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=69677#p69677</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Wed, 20 Feb 2013 20:54:43 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=69677#p69677</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=69676#p69676</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 20 Feb 2013 20:50:59 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=69676#p69676</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=69675#p69675</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Wed, 20 Feb 2013 20:42:42 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=69675#p69675</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=68129#p68129</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (metlick)]]></author>
			<pubDate>Wed, 02 Jan 2013 17:55:39 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=68129#p68129</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=68056#p68056</link>
			<description><![CDATA[<p>В IE <em>Internet Explorer_Server1</em> (а не <strong>Explorer_Server1</strong>) — это поле, в котором отображаются страницы.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 30 Dec 2012 22:44:43 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=68056#p68056</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=68055#p68055</link>
			<description><![CDATA[<p>У меня Explorer_Server1 принадлежит строке поиска на одном из сайтов. Код выше получает текст всей страницы, кроме строки поиска. Или я чего-то недопонял...</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sun, 30 Dec 2012 22:39:55 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=68055#p68055</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=68054#p68054</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 30 Dec 2012 22:29:53 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=68054#p68054</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=68053#p68053</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sun, 30 Dec 2012 22:03:28 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=68053#p68053</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=68052#p68052</link>
			<description><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Честно говоря изначально задача была не вполне ясна...</p></blockquote></div><p>Насколько я понял, нужно извлечь текст из такого же контрола, как <em>Internet Explorer_Server</em> в IE.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 30 Dec 2012 21:44:13 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=68052#p68052</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=68050#p68050</link>
			<description><![CDATA[<p><strong>teadrinker</strong><br />Честно говоря изначально задача была не вполне ясна...</p><p><strong>ТС</strong><br />Думаю что непомешает скриншот результата на фоне AU3_Spy.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sun, 30 Dec 2012 21:26:50 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=68050#p68050</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=68049#p68049</link>
			<description><![CDATA[<p><strong>serzh82saratov</strong>, так не выйдет. Попробуй таким макаром получить текст из контрола Internet Explorer_Server1 в IE.</p><p><strong>metlick</strong>, для решения твой задачи нужно знать заголовок окна (или его хэндл), которому принадлежит данный контрол, или хэндл контрола.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 30 Dec 2012 21:13:20 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=68049#p68049</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=68048#p68048</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sun, 30 Dec 2012 19:44:37 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=68048#p68048</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Получение данных из контрола Internet Explorer_Server]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=68047#p68047</link>
			<description><![CDATA[<p>Здравствуйте, есть программа etxt по определению уникальности текста, возможно ли посредством ahk получать данные из этой программы в файл или буфер? Конкретно нужен процент уникальности текста по завершению проверки, программа выводит этот процент в форме которая определяется как:&nbsp; ClassNN: Internet Explorer_Server2<br />т.е. как я понял это html страничка во встроенном браузере. Натолкните на мысль в каком напровлении искать решение.</p>]]></description>
			<author><![CDATA[null@example.com (metlick)]]></author>
			<pubDate>Sun, 30 Dec 2012 19:28:52 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=68047#p68047</guid>
		</item>
	</channel>
</rss>
