- ubuntu12.04环境下使用kvm ioctl接口实现最简单的虚拟机
- Ubuntu 通过无线网络安装Ubuntu Server启动系统后连接无线网络的方法
- 在Ubuntu上搭建网桥的方法
- ubuntu 虚拟机上网方式及相关配置详解
CFSDN坚持开源创造价值,我们致力于搭建一个资源共享平台,让每一个IT人在这里找到属于你的精彩世界.
这篇CFSDN的博客文章脚本 MsAgent组件 微软精灵 揪出系统自带的宠物由作者收集整理,如果你对这篇文章有兴趣,记得点赞哟.
复制代码 代码如下
'On Error Resume Next strAgentName = "Merlin" strAgentPath = "c:\windows\msagent\chars\" & strAgentName & ".acs" ScriptComplete=0 Set objAgent = WScript.CreateObject("Agent.Control.2","agent_") objAgent.Connected = True objAgent.Characters.Load strAgentName, strAgentPath Set objCharacter = objAgent.Characters(strAgentName) objCharacter.LanguageID = &H409 'objCharacter.LanguageID = &H804 '菜单为中文,但微软没有开发中文语音 objCharacter.MoveTo 0, 700 objCharacter.Show objCharacter.GestureAt 900, 700 wsh.sleep 2000 objCharacter.MoveTo 900, 700 wsh.sleep 3000 objCharacter.GestureAt 900, 100 wsh.sleep 2000 objCharacter.MoveTo 900, 100 wsh.sleep 3000 objCharacter.Speak("Good " & GetTimeOfDay()) objCharacter.Speak("I love you") objCharacter.speak("Hello, how are you?") objCharacter.speak("I will show for you!") wsh.sleep 10000 '边表演边说明 show "Acknowledge", "点头" show "Alert", "伸直并抬起眉毛" show "Announce", "举起喇叭并吹奏" show "Blink", "眨眼睛" show "Confused", "挠头" show "Congratulate", "展示奖品" show "Congratulate_2", "鼓掌" show "Decline", "抬起手并摇头" show "DoMagic1", "举起魔法棍" show "DoMagic2", "放下魔法棍,出现云彩" show "DontRecognize", "捂住耳朵" show "Explain", "将两臂向两侧展开" show "GestureDown", "向下的手势" show "GestureLeft", "向左的手势" show "GestureRight", "向右的手势" show "GestureUp", "向上的手势" show "GetAttention", "向前倾并敲击" show "GetAttentionContinued", "向前倾并再次敲击" show "GetAttentionReturn", "返回正常姿势" ShowLoop "Hearing_1", "耳朵伸长(循环的动画)" ShowLoop "Hearing_2", "头向左倾(循环的动画)" ShowLoop "Hearing_3", "头向左转(循环的动画)" ShowLoop "Hearing_4", "头向右转(循环的动画)" show "Hide", "消失在帽子下面" show "Idle1_1", "喘口气" show "Idle1_2", "向左看并眨眼" show "Idle1_3", "向右看" show "Idle1_4", "从上往右看并眨眼" show "Idle2_1", "看看魔法棍并眨眼" show "Idle2_2", "手握手并眨眼" show "Idle3_1", "打呵欠" ShowLoop "Idle3_2", "入睡(循环的动画)" show "LookDown", "向下看" show "LookDownBlink", "眨眼向下看" show "LookDownReturn", "返回正常姿势" show "LookLeft", "向左看" show "LookLeftBlink", "眨眼向左看" show "LookLeftReturn", "返回正常姿势" show "LookRight", "向右看" show "LookRightBlink", "眨眼向右看" show "LookRightReturn", "返回正常姿势" show "LookUp", "向上看" show "LookUpBlink", "眨眼向上看" show "LookUpReturn", "返回正常姿势" show "MoveDown", "向下飞行" show "MoveLeft", "向左飞行" show "MoveRight", "向右飞行" show "MoveUp", "向上飞行" show "Pleased", "微笑并把手合在一起" show "Process", "搅拌大锅" ShowLoop "Processing", "搅拌大锅(循环的动画)" show "Read", "打开书,阅读并查寻" show "ReadContinued", "阅读并查寻" show "ReadReturn", "返回正常姿势" ShowLoop "Reading", "阅读(循环的动画)" show "RestPose", "正常姿势" show "Sad", "悲伤的表情" show "Search", "观察水晶球" ShowLoop "Searching", "观察水晶球(循环的动画)" show "Show", "从帽子中出现" show "StartListening", "手靠向耳朵" show "StopListening", "手捂在耳朵上" show "Suggest", "显示电灯泡" show "Surprised", "显得很吃惊" show "Think", "用手托住下巴向上看" ShowLoop "Thinking", "用手托住下巴向上看(循环的动画)" show "Uncertain", "向前倾并抬起眉毛" show "Wave", "摆手" show "Write", "打开书,书写并查寻" show "WriteContinued", "书写并查寻" show "WriteReturn", "返回正常姿势" ShowLoop "Writing", "书写(循环的动画)" actions=Array("Acknowledge","Alert","Announce","Blink","Confused","Congratulate","Congratulate_2","Decline","DoMagic1","DoMagic2","DontRecognize","Explain","GestureDown","GestureLeft","GestureRight","GestureUp","GetAttention","GetAttentionContinued","GetAttentionReturn","Hide","Idle1_1","Idle1_2","Idle1_3","Idle1_4","Idle2_1","Idle2_2","Idle3_1","LookDown","LookDownBlink","LookDownReturn","LookLeft","LookLeftBlink","LookLeftReturn","LookRight","LookRightBlink","LookRightReturn","LookUp","LookUpBlink","LookUpReturn","MoveDown","MoveLeft","MoveRight","MoveUp","Pleased","Process","Read","ReadContinued","ReadReturn","RestPose","Sad","Search","Show","StartListening","StopListening","Suggest","Surprised","Think","Uncertain","Wave","Write","WriteContinued","WriteReturn") '顺序表演 for each action in actions Set objRequest = objCharacter.Play(action) Do While objRequest.Status > 0 WScript.Sleep 100 Loop next '随机表演 do Randomize i=Int((UBound(actions) + 1) * Rnd) action = actions(i) Set objRequest = objCharacter.Play(action) Do While objRequest.Status > 0 WScript.Sleep 100 Loop loop Do WScript.Sleep 1000 Loop Until ScriptComplete Function GetTimeOfDay() h = Hour(Now) If h < 12 Then TimeOfDay = "Morning" ElseIf h < 18 Then TimeOfDay = "Afternoon" Else TimeOfDay = "Evening" End If GetTimeOfDay = TimeOfDay End Function Sub Show(action,prompt) objCharacter.Speak(action) wsh.sleep 300 objCharacter.Think(prompt) wsh.sleep 200 Set objRequest = objCharacter.Play(action) Do While objRequest.Status > 0 WScript.Sleep 100 Loop end sub Sub ShowLoop(action,prompt) objCharacter.Speak(action) objCharacter.Think(prompt) objCharacter.Play(action) wsh.sleep 5000 objCharacter.stop end sub Sub agent_dblclick(ByVal CharacterID, ByVal Button, ByVal Shift, ByVal X, ByVal Y) if MsgBox("确定要退出吗?",33,"确认退出")-2 then objCharacter.StopAll WScript.Quit end if End Sub Sub agent_DragStart(ByVal CharacterID, ByVal Button, ByVal Shift, ByVal X, ByVal Y) objCharacter.Speak("Shit! Don't drag me!") wsh.sleep 5000 End Sub 。
其实我们调用了系统里的MsAgent组件。Microsoft Agent是微软公司发布的一项代理软件开发技术,我们知道,在Office帮助系统中有一种叫作Office助手的代理软件,但其只允许Office各个组件调用。而Agent动画人物可由任何Windows程序调用;Agent支持文字气球和输入提示条,在输出语音的同时把文字输出至一个卡通式文字气球中。如果电脑系统中安装有Agent语音识别引擎,用户可以通过声卡、麦克风与MsAgent交谈。 介绍MsAgent的帖子早已有之,这里再次利用MsAgent,给出这个好玩的脚本,聊以活跃气氛,吸引大家对vbs的兴趣,希望大家积极发帖 。
最后此篇关于脚本 MsAgent组件 微软精灵 揪出系统自带的宠物的文章就讲到这里了,如果你想了解更多关于脚本 MsAgent组件 微软精灵 揪出系统自带的宠物的内容请搜索CFSDN的文章或继续浏览相关文章,希望大家以后支持我的博客! 。
我有 powershell 脚本。通过调度程序,我运行 bat 文件,该文件运行 PS1 文件。 BAT文件 Powershell.exe -executionpolicy remotesigned
什么更快? 或者 $.getScript('../js/SOME.js', function (){ ... // with $.ajaxSetup({ cache: true });
需要bash脚本来显示文件 #!/bin/bash my_ls() { # save current directory then cd to "$1" pushd "$1" >/dev/nu
我有一个输入 csv 文件,实际上我需要在输入文件中选择第 2 列和第 3 列值,并且需要转换两个值的时区(从 PT 到 CT),转换后我需要替换转换后的时区值到文件。 注意: 所有输入日期值都在太平
我正在使用/etc/init.d/httpd 作为 init.d 脚本的模板。我了解文件中发生的所有内容,但以下行除外: LANG=$HTTPD_LANG daemon --pidfile=${pid
我有以下选择: python runscript.py -O start -a "-a "\"-o \\\"-f/dev/sda1 -b256k -Q8\\\" -l test -p maim\""
我对 shell 脚本完全陌生,但我需要编写一个 shell 脚本来检查文件是否存在,然后移动到另一个位置 这是我写的: 一旦设备崩溃,我就会在/storage/sdcard1/1 中收集日志 #!/
我正在使用 bash 脚本从文本文件中读取数据。 数据: 04:31 Alex M.O.R.P.H. & Natalie Gioia - My Heaven http://goo.gl/rMOa2q
这是单击按钮时运行的 javascript 的结尾 xmlObj.open ('GET', /ajax.php, true); xmlObj.send (''); } 所以这会执行根目录中的php脚本
关闭。这个问题需要debugging details .它目前不接受答案。 编辑问题以包含 desired behavior, a specific problem or error, and th
我需要将文件转换为可读流以通过 api 上传,有一个使用 fs.createReadStream 的 Node js 示例。任何人都可以告诉我上述声明的 python 等价物是什么? 例子 const
我有一个 shell 脚本 cron,它从同一目录调用 python 脚本,但是当这个 cron 执行时,我没有从我的 python 脚本中获得预期的输出,当我手动执行它时,我的 python 脚本的
如何使 XMLHttpRequest (ajax) 调用的 php 脚本安全。 我的意思是,不让 PHP 文件通过直接 url 运行,只能通过脚本从我的页面调用(我不想向未登录的用户显示数据库结果,并
我正在尝试添加以下内容 我正在使用经典的 asp。但我不断收到的错误是“一个脚本 block 不能放在另一个脚本 block 内。”我尝试了此处的 document.write 技术:Javasc
如何从另一个 PHP 脚本(如批处理文件)中运行多个 PHP 脚本?如果我了解 include 在做什么,我认为 include 不会起作用;因为我正在运行的每个文件都会重新声明一些相同的函数等。我想
我想创建具有动态内容的网页。我有一个 HTML 页面,我想从中调用一个 lua 脚本 如何调用 lua 脚本? ? ? 从中检索数据?我可以做类似的事情吗: int xx = 0; xx
我删除了我的第一个问题,并重新编写了更多细节和附加 jSfiddle domos。 我有一个脚本,它运行查询并返回数据,然后填充表。表中的行自动循环滚动。所有这些工作正常,并通过使用以下代码完成。然而
我尝试使用 amp 脚本,但收到此错误: “[amp-script] 脚本哈希未找到。amp-script[script="hello-world"].js 必须在元[name="amp-script
我有一个读取输入的 Shell 脚本 #!/bin/bash echo "Type the year that you want to check (4 digits), followed by [E
我正在从 nodejs 调用 Lua 脚本。我想传递一个数组作为参数。我在 Lua 中解析该数组时遇到问题。 下面是一个例子: var script = 'local actorlist = ARGV
我是一名优秀的程序员,十分优秀!