<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBS: Поиск текста на странице]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6025&amp;type=atom" />
	<updated>2011-08-12T06:48:23Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6025</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Поиск текста на странице]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50568#p50568" />
			<content type="html"><![CDATA[<p>добавить в планировщик с минутным интервалом примерно такой код:<br /></p><div class="codebox"><pre><code>source =&quot;123456&quot;

Set srvXmlHttp = CreateObject(&quot;Msxml2.ServerXMLHTTP&quot;)
srvXmlHttp.Open &quot;GET&quot;, &quot;http://192.168.200.47/1/index12.php&quot;, False
srvXmlHttp.send

set fso = CreateObject(&quot;Scripting.FileSystemObject&quot;)
tmpFile = &quot;_tmp.txt&quot;
fso.CreateTextFile tmpFile, True
Set f = fso.OpenTextFile(tmpFile, 2, True)
f.WriteLine(srvXmlHttp.responseText)

set handle = fso.OpenTextFile(tmpFile)
     content = handle.ReadLine
     do until handle.atEndofStream
        if InStr(content, source) &gt; 0 Then
               WScript.Echo content
           End if
        content = handle.ReadLine
      Loop      
      handle.close</code></pre></div><p><strong>Asterixx</strong> зачем все это?</p>]]></content>
			<author>
				<name><![CDATA[abasov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5104</uri>
			</author>
			<updated>2011-08-12T06:48:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50568#p50568</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBS: Поиск текста на странице]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49993#p49993" />
			<content type="html"><![CDATA[<p>Доброго времени суток.<br />Подскажите как решить следующую задачу.<br />Есть страница <a href="http://192.168.200.47/1/index12.php">http://192.168.200.47/1/index12.php</a><br />на неё периодически появляется набор символов, нужен VBS скрипт, который бы с интервалом 1 раз в минуту смотрел, на страничку и в случае появления нужной последовательности символов (например 125756) выводил окно поверх всех окон с полным содержимым строки в которой найдены указанные символы.<br />Я в скриптостроении не силен, но если ткнете в несколько скриптов аналогичного направления попробую ченить собрать<br />Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[Asterixx]]></name>
			</author>
			<updated>2011-07-19T13:52:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49993#p49993</id>
		</entry>
</feed>
