<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: InternetExplorer и DOM HTML]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=7504&amp;type=atom" />
	<updated>2012-08-27T17:17:10Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=7504</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: InternetExplorer и DOM HTML]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=63250#p63250" />
			<content type="html"><![CDATA[<p>Сам отвечу на свой вопрос. </p><div class="codebox"><pre><code>allelements := Pwb.Document.body.all

Loop % allelements.Length
{
If ((allelements[A_Index-1].ClassName = &quot;h1&quot;) and (allelements[A_Index-1].InnerText = &quot;Производители&quot;))
    {
    .....CODE.....
    }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[chippp]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28524</uri>
			</author>
			<updated>2012-08-27T17:17:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=63250#p63250</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: InternetExplorer и DOM HTML]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=63237#p63237" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Pwb := ComObjCreate(&quot;InternetExplorer.Application&quot;) ;create a IE instance
Pwb.Visible := True
Pwb.Navigate(&quot;http://www.svyaznoy.ru/catalog/phone/224&quot;)

while, Pwb.ReadyState != 4
  Sleep, 10

for vallie in Pwb.Document.body.all   ; !!!СДЕСЬ ОШИБКА!!!
{
   if (vallie.ClassName = &quot;h1&quot; &amp; vallie.InnerText = &quot;Производители&quot;)
   {
      for vallie2 in vallie.firstChild
         MsgBox, % vallie2.firstChild.innerText
   }
}
return</code></pre></div><p>При выполнении кода цикла &quot;for&quot; вылезает ошибка:<br /><strong>Error: 0x80020006<br />Specifically:_NewEnum</strong></p><p>Плиз help me. как сделать правильно ?</p>]]></content>
			<author>
				<name><![CDATA[chippp]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28524</uri>
			</author>
			<updated>2012-08-27T08:50:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=63237#p63237</id>
		</entry>
</feed>
