<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; VBScript объект Internet Explorer событие StatusTextChange]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=5653</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5653&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «VBScript объект Internet Explorer событие StatusTextChange».]]></description>
		<lastBuildDate>Sat, 26 Mar 2011 02:19:04 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: VBScript объект Internet Explorer событие StatusTextChange]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=46900#p46900</link>
			<description><![CDATA[<p>Используйте свойства «.Busy» и «.ReadyState», наподобие <a href="http://forum.script-coding.com/viewtopic.php?pid=18658#p18658">этого</a>.</p>]]></description>
			<author><![CDATA[null@example.com (alexii)]]></author>
			<pubDate>Sat, 26 Mar 2011 02:19:04 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=46900#p46900</guid>
		</item>
		<item>
			<title><![CDATA[VBScript объект Internet Explorer событие StatusTextChange]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=46899#p46899</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Mickey666x)]]></author>
			<pubDate>Sat, 26 Mar 2011 01:01:26 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=46899#p46899</guid>
		</item>
	</channel>
</rss>
