Merlin the great!
Imagine how amazed your users will be when they login to the domain and Merlin greets them...
You can call Merlin using Agent Control and make do the moves while you perform you login scripts in the background...
You can load information about the logged on user either using ADSI scripts or just by reading on the environment variable table...
Take note of the length of the messages or actions you throw at Merlin, you might need to make use of the Sleep method, otherwise the sentences or the animation will overlap...
Code Snippet:
strAgentName = "Merlin"
strAgentPath = "Msagent\Chars\" & strAgentName & ".acs"
Set objAgent = CreateObject("Agent.Control.2")
objAgent.Connected = True
objAgent.Characters.Load strAgentName, strAgentPath
Set merlin_d_great = objAgent.Characters.Character(strAgentName)
With merlin_d_great
.Show
Set objRequest = .MoveTo(500,400)
Set objRequest = .Play("Announce")
Set objRequest = .Play("Explain")
Set objRequest = .Speak("Hi ")
Set objRequest = .Play("Read")
wscript.sleep 2000
Set objRequest = .Speak("Today is " & Now() & "...")
Set objRequest = .Play("ReadContinued")
wscript.sleep 2000
Set objRequest = .Speak("and the time is " & Time() & "...")
wscript.sleep 2000
Set objRequest = .Play("ReadReturn")
wscript.sleep 2000
Set objRequest = .MoveTo(750, 450)
Set objRequest = .Play("Pleased")
wscript.sleep 5000
Set objRequest = .Speak("I will be back shortly...")
wscript.sleep 5000
Set objRequest = .Play("Wave")
wscript.sleep 5000
.Hide
End With
If at first you fail, call it version 1.0
No comments:
Post a Comment