我用VB怎么写一段每隔三分钟按下一次F2

[复制链接]
查看11 | 回复3 | 2009-1-23 18:10:00 | 显示全部楼层 |阅读模式
我用VB怎么写一段每隔三分钟按下一次F2,
我现在可以写一个计时器,但是不知道要怎么样才可以命令按下F2

回复

使用道具 举报

千问 | 2009-1-23 18:10:00 | 显示全部楼层
添加一个Timer控件,设置其Interval属性为1000以下是代码dim i as integerprivate sub timer1_timer()i=i+1if i = 180 thensendkeys "{f2}"i=0end ifend sub...
回复

使用道具 举报

千问 | 2009-1-23 18:10:00 | 显示全部楼层
private sub timer1_timer() dim i as Staticif i >= 180 then
i = 0
sendkeys "{f2}" else i = + 1end if end sub...
回复

使用道具 举报

千问 | 2009-1-23 18:10:00 | 显示全部楼层
还不如用按键精灵...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行