<package>
<job id="vbs">
<script language="vbscript">
' Show 5 signed-in windows
LoopCount = 5
' select shell
Set WshShell = WScript.CreateObject("WScript.Shell")
' active msn
WshShell.AppActivate "MSN Messenger"
' send "alt+f, m, f, alt+f, m, o"
For i = 1 to LoopCount
WshShell.SendKeys "%f"
WshShell.SendKeys "m"
WshShell.SendKeys "f"
WScript.Sleep 500
WshShell.SendKeys "%f"
WshShell.SendKeys "m"
WshShell.SendKeys "o"
WScript.Sleep 500
Next
</script>
</job>
</package>
将上述代码保存为:MSN.wsf,双击运行之,把你的msn列为好友的同志们就可以看到你的MSN发疯的样子了:)
博客展示了一段VBScript代码,通过创建WScript.Shell对象,激活MSN Messenger并发送特定按键组合。将代码保存为MSN.wsf并运行,能让MSN呈现发疯状态,涉及Windows系统和脚本操作。
581





