本文介绍了VBScript问题 - 激活Outlook发送密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 抱歉,如果我在错误的地方发布此内容。我无法在微软网站上找到任何VBScript论坛。 Sorry if I am posting this in the wrong place. I couldn't find a VBScript forum anywhere from the microsoft site.我想激活outlook并发送组合键CTRL + 2(刷新日历视图)。I would like to activate outlook and send the key combination CTRL+2 (Refresh Calendar View).我正在使用DCOM和WSH的组合,但我似乎无法让它工作。它也没有错误。I'm using a combination of DCOM and WSH but I can't seem to get it to work. It does not error out either. sStatus = "未找到"sStatus = "Not Found" 设置 WshShell = WScript。 CreateObject ( " WScript.Shell" ) setWshShell = WScript.CreateObject("WScript.Shell") On 错误 恢复On ErrorResume设置 oOutlook = getobject ( "" , "Outlook.Application"" )Set oOutlook= getobject("","Outlook.Application")如果 err.number = 0 然后 sStatus = " Found" sStatus="Found" WScript.Sleep WshShell.SendKeys " ^(2)"WshShell.SendKeys"^(2)" 结束 如果 EndIf错误 goto 0 wsh.echo sStatus 500推荐答案 我会发布到官方脚本专家论坛!论坛:I would post to the Official Scripting Guys Forum! forum: http://social.technet.microsoft.com/Forums/en/ITCG/threads 这篇关于VBScript问题 - 激活Outlook发送密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!