<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBScript объект Internet Explorer событие StatusTextChange]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5653&amp;type=atom" />
	<updated>2011-03-26T02:19:04Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5653</id>
		<entry>
			<title type="html"><![CDATA[Re: VBScript объект Internet Explorer событие StatusTextChange]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=46900#p46900" />
			<content type="html"><![CDATA[<p>Используйте свойства «.Busy» и «.ReadyState», наподобие <a href="http://forum.script-coding.com/viewtopic.php?pid=18658#p18658">этого</a>.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2011-03-26T02:19:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=46900#p46900</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBScript объект Internet Explorer событие StatusTextChange]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=46899#p46899" />
			<content type="html"><![CDATA[<p>Вопрос: в определенном месте кода дождаться события. В данном случае через 10 сек после навигации на страницу, отловить событие StatusTextChange, когда в строке статуса появится http://forum.script-coding.com/ (при наведении курсора на ссылку) После чего продолжится выполнение кода.<br /></p><div class="codebox"><pre><code>Dim IE, STC
STC = False
Set IE = WScript.CreateObject(&quot;InternetExplorer.Application&quot;, &quot;IE_&quot;)
IE.Visible = True
IE.Navigate (&quot;http://script-coding.com/&quot;)
WScript.Sleep 10000
STC = True

While STC = True
    WScript.Sleep 200
Wend

MsgBox (&quot;Форум&quot;)
IE.Quit
Wscript.Quit

Sub IE_StatusTextChange(ByVal sText)

    If STC = True Then
        If sText = &quot;http://forum.script-coding.com/&quot; Then
            STC = False
        Else
            Exit Sub
        End If
    End If
    
End Sub

Sub IE_OnQuit()
    MsgBox (&quot;Quit&quot;)
    WScript.Quit
End Sub</code></pre></div><p>Сам придумал пока вопрос писал! Другой вопрос: Рациональный ли код, или попроще есть?</p>]]></content>
			<author>
				<name><![CDATA[Mickey666x]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26846</uri>
			</author>
			<updated>2011-03-26T01:01:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=46899#p46899</id>
		</entry>
</feed>
