<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBS: Аналог WinWaitClose из AutoIt]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6375&amp;type=atom" />
	<updated>2011-10-28T16:45:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6375</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Аналог WinWaitClose из AutoIt]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=53011#p53011" />
			<content type="html"><![CDATA[<p>Можно-то можно, но ни тебе CLASS/TITLE/CONTROL, ни REGEXP*…</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2011-10-28T16:45:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=53011#p53011</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Аналог WinWaitClose из AutoIt]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=53010#p53010" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>alexii пишет:</cite><blockquote><p>В самом VBS — нет.</p></blockquote></div><p>Но можно собрать из подручных материалов вот такой несложный велосипед <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br /></p><div class="codebox"><pre><code>&#039;*****************************************************************************************
&#039;* Язык:     VBScript
&#039;* Описание: Простой пример ожидания закрытия окна
&#039;*****************************************************************************************



str = &quot;Безымянный - Блокнот&quot;		&#039;заголовок искомого окна

WinWaitClose str	
MsgBox &quot;окно &quot;&quot;&quot; &amp; str &amp; &quot;&quot;&quot; закрыто&quot;

sub WinWaitClose(caption)
	set shell = CreateObject (&quot;WScript.Shell&quot;)

		&#039; цикл: пока окно активируется (т.е. существует) - спать
	While  (shell.AppActivate (caption))
			WSH.Sleep 50
	Wend

end sub</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Аскет]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25748</uri>
			</author>
			<updated>2011-10-28T15:46:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=53010#p53010</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Аналог WinWaitClose из AutoIt]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52987#p52987" />
			<content type="html"><![CDATA[<p>В самом VBS — нет. Можно использовать библиотеку <a href="http://www.script-coding.com/AutiItX.html">AutoItX3.dll</a>.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2011-10-28T09:21:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52987#p52987</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBS: Аналог WinWaitClose из AutoIt]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52981#p52981" />
			<content type="html"><![CDATA[<p>Здравствуйте, есть ли в VBS аналог WinWaitClose&nbsp; из AutoIt, ожидание закрытия окна?</p>]]></content>
			<author>
				<name><![CDATA[HolyMacaroni]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26990</uri>
			</author>
			<updated>2011-10-28T07:32:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52981#p52981</id>
		</entry>
</feed>
