<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBScript: пример использования персонажей Microsoft Agent]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=895&amp;type=atom" />
	<updated>2007-11-27T07:41:18Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=895</id>
		<entry>
			<title type="html"><![CDATA[VBScript: пример использования персонажей Microsoft Agent]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=6423#p6423" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>&#039; Информация о персонажах:
&#039; C:\WINDOWS\system32\oobe\images\qmark.acs (круг с вопросом внутри)
&#039; C:\WINDOWS\srchasst\chars\courtney.acs (бабка на машине)
&#039; C:\WINDOWS\srchasst\chars\earl.acs (уродец на серфе)
&#039; C:\WINDOWS\srchasst\chars\rover.acs (песик как в поиске)
&#039; C:\WINDOWS\msagent\chars\merlin.acs (маг)
&#039; C:\Program Files\Microsoft Office\OFFICE11\CLIPPIT.ACS (скрепка)
&#039; C:\Program Files\Microsoft Office\OFFICE11\DOT.ACS (красный колобок)
&#039; C:\Program Files\Microsoft Office\OFFICE11\F1.ACS (двуногий робот)
&#039; C:\Program Files\Microsoft Office\OFFICE11\LOGO.ACS (логотип офиса)
&#039; C:\Program Files\Microsoft Office\OFFICE11\MNATURE.ACS (земной шар)
&#039; C:\Program Files\Microsoft Office\OFFICE11\OFFCAT.ACS (котенок)
&#039; C:\Program Files\Microsoft Office\OFFICE11\ROCKY.ACS (собака)

&#039; Наименование используемого персонажа Microsoft Agent
strCharacter = &quot;merlin&quot;

Set objMicrosoftAgent = CreateObject(&quot;Agent.Control.1&quot;)
objMicrosoftAgent.Connected = True
objMicrosoftAgent.Characters.Load strCharacter, strCharacter &amp; &quot;.acs&quot;
Set objCharacter = objMicrosoftAgent.Characters(strCharacter)
With objCharacter
    .Top = 200
    .Left = 600
    .LanguageID = &amp;h409
    .Show
    &#039;Здороваемся с пользователем.
    .Play &quot;Greet&quot;
    .Play &quot;RestPose&quot;
    .Think &quot;Привет!&quot;
    &#039;Завершаем чтение информации
    .Play &quot;ReadReturn&quot;
    &#039;Прощаемся с пользователем.
    .Play &quot;Wave&quot;
End With

&#039; Синхронизируем анимацию со скриптом и завершаемся.
Set objCharacterRequest = objCharacter.Hide

Do Until objCharacterRequest.Status = 0 &#039; Complete = 0
    Wscript.Sleep 100
Loop
Set objCharacter = Nothing

objMicrosoftAgent.Characters.Unload strCharacter</code></pre></div><p>Автор примера - <strong>mozers</strong>.</p>]]></content>
			<author>
				<name><![CDATA[The gray Cardinal]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=2</uri>
			</author>
			<updated>2007-11-27T07:41:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=6423#p6423</id>
		</entry>
</feed>
