原来的贴子在
http://community.csdn.net/Expert/topic/3974/3974913.xml?temp=.8616297我按照朋友说的方法给修改了一下
大致如下count=inputbox("请输入你要发送的次数,只能为不低与0的整数")
yanshi=inputbox("请输入延时,推荐为1000")
neirong=inputbox("你要发送的内容")
if count="" then
msgbox ("你没有输入要发送的次数")
end if
if yanshi="" then
msgbox ("你没有输入延时")
end if
if neirong="" then
msgbox ("你没有输入要发送的内容")
wscript.quit
end if Set WshShell= WScript.CreateObject("WScript.Shell")
for i=1 to count
WScript.Sleep yanshi
Clipboard.SetText neirong
WshShell.SendKeys= "^v"
WshShell.SendKeys i
WshShell.SendKeys "%s"
next
但是问题又出来了。我保存为.vbs的时候,出现了 缺少对象 "ciipboard"
不知道什么原因,找了一些以前的贴看了一下。没搞明白。。
帮忙。
http://community.csdn.net/Expert/topic/3974/3974913.xml?temp=.8616297我按照朋友说的方法给修改了一下
大致如下count=inputbox("请输入你要发送的次数,只能为不低与0的整数")
yanshi=inputbox("请输入延时,推荐为1000")
neirong=inputbox("你要发送的内容")
if count="" then
msgbox ("你没有输入要发送的次数")
end if
if yanshi="" then
msgbox ("你没有输入延时")
end if
if neirong="" then
msgbox ("你没有输入要发送的内容")
wscript.quit
end if Set WshShell= WScript.CreateObject("WScript.Shell")
for i=1 to count
WScript.Sleep yanshi
Clipboard.SetText neirong
WshShell.SendKeys= "^v"
WshShell.SendKeys i
WshShell.SendKeys "%s"
next
但是问题又出来了。我保存为.vbs的时候,出现了 缺少对象 "ciipboard"
不知道什么原因,找了一些以前的贴看了一下。没搞明白。。
帮忙。
解决方案 »
- tablemanager
- 怎么让msflexgrid分页?
- 使用mshflexgrid控件导入文本文件,怎么做更快?(想access导入到mshflexgrid一样)m行n列,列使用逗号分隔
- 高手过来,急!添加控件到标题栏!
- 急寻抽奖系统源代码,谢谢了!
- webbrowse newWindows2的问题
- 谁有从搜虎、新郎上提取新闻的原程序?我100分送上!
- 安装的问题。。。在线等待,搞定就给分。。。
- 如何实现类似资源管理器的分隔条
- 想u盘插入电脑后自动备案U盘所有文件和文件夹到电脑
- 高手们,高深问题 动态创建 MSFlexGrid 问题,不过我是在类模块中,代码如下
- vb工程中如何调用自己的dll
yanshi=inputbox("请输入延时,推荐为1000")
neirong=inputbox("你要发送的内容")
if count="" then
msgbox ("你没有输入要发送的次数")
end if
if yanshi="" then
msgbox ("你没有输入延时")
end if
if neirong="" then
msgbox ("你没有输入要发送的内容")
wscript.quit
end if dim wshell
set wshell=CreateObject("wscript.shell")
for i=1 to count
WScript.Sleep yanshi
wshell.SendKeys neirong
next
但是还是有点问题
为什么变量的内容不能为字符?
只能为数字呢?
郁闷。。还有就是
count=inputbox("请输入你要发送的次数,只能为不低与0的整数")
yanshi=inputbox("请输入延时,推荐为1000")
neirong=inputbox("你要发送的内容")
if count="" then
msgbox ("你没有输入要发送的次数")
end if
if yanshi="" then
msgbox ("你没有输入延时")
end if
if neirong="" then
msgbox ("你没有输入要发送的内容")
wscript.quit
end if dim wshell
set wshell=CreateObject("wscript.shell")
for i=1 to count
WScript.Sleep yanshi
wshell.SendKeys neirong
WShell.SendKeys "%s"
next 当发送消息的时候,如果我定义了发送100条。但是没发送完。我想结束掉。应该怎么弄?
应该怎么弄哦???