用这个
name=Inputbox("请输入轰炸对象名称")
Dim a
a=inputbox("请输入轰炸次数")
boom=Inputbox("请输入轰炸内容")
msgbox("轰炸对象名称:"+name)
msgbox("轰炸次数:"+a)
msgbox("轰炸内容:"+boom)
msgbox("即将开始轰炸!(若信息有误请退出重进)")
Dim Word
Set Word=CreateObject("Word.Application")
Word.Documents.Add
Word.Selection.Text=boom
Word.Selection.Copy
Word.Quit False
Set WshShell= WScript.CreateObject("WScript.Shell")
WshShell.AppActivate name
for i=1 to (int(a))
WScript.Sleep 10
WshShell.SendKeys "^v"
WshShell.SendKeys "%s"
Next