<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBScript:InternetExplorer.Appilication]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=7267&amp;type=atom" />
	<updated>2012-06-08T10:13:56Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=7267</id>
		<entry>
			<title type="html"><![CDATA[Re: VBScript:InternetExplorer.Appilication]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=60822#p60822" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>В vbscript плохо разбираюсь так что не судите строго.</p></blockquote></div><p>Тогда очень поможет эта страничка: <a href="http://www.script-coding.com/DOM.html">Использование HTML DOM (Document Object Model) в скриптах на базе Windows Script Host</a><br />Ссылки можно так собрать: </p><div class="codebox"><pre><code>
Sub Navigate(Link)
	objIE.Navigate Link
	While objIE.Busy
		WScript.Sleep 100
	Wend
End Sub 

Set objIE = CreateObject(&quot;InternetExplorer.Application&quot;)
objIE.Visible = True

Navigate &quot;http://www.yandex.ru/&quot;
For Each tag In objIE.Document.getElementsByTagName(&quot;a&quot;)
	link = tag.getAttribute(&quot;href&quot;)
    If (InStr(link,&quot;http&quot;)&lt;&gt;0) Then 
		WScript.Echo link
    End If 
Next
&#039;objIE.Quit</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Felix Faria]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25783</uri>
			</author>
			<updated>2012-06-08T10:13:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=60822#p60822</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBScript:InternetExplorer.Appilication]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=60817#p60817" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Set objIE = CreatEObject(&quot;InternetExplorer.Application&quot;)
objIE.Visible = True
strURL = &quot;yandex.ru&quot;
objIE.Navigate strURL
While objIE.ReadyState &lt;&gt; 4
    WScript.Sleep 100
Wend</code></pre></div><p>Вообщем суть в том чтобы программно получить коллекцию ссылок на странице <br />и сделать методом click() по индексу этой коллекции.<br />В vbscript плохо разбираюсь так что не судите строго.</p><p>P.s Помоему получить ссылки можно через&nbsp; objIE.Document.(.....)<br />А как сделать клик&nbsp; по элементу?:/</p>]]></content>
			<author>
				<name><![CDATA[CyberW0rm]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27500</uri>
			</author>
			<updated>2012-06-08T08:18:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=60817#p60817</id>
		</entry>
</feed>
