VB 怎么自动按alt+c键
答案:2 悬赏:0 手机版
解决时间 2021-04-04 05:57
- 提问者网友:练爱
- 2021-04-03 06:11
VB 怎么自动按alt+c键
最佳答案
- 五星知识达人网友:渊鱼
- 2021-04-03 07:05
Public Sub DoubleKey(ByVal key1 As Byte, ByVal key2 As Byte)
Call keybd_event(key1, 0, 0, 0)
DoEvents
Call keybd_event(key2, 0, 0, 0)
DoEvents
Call keybd_event(key2, 0, 2, 0)
DoEvents
Call keybd_event(key1, 0, 2, 0)
DoEvents
End Sub
'用法
Private Sub Timer1_Timer()
DoubleKey vbKeyAlt, vbKeyC
End Sub
Call keybd_event(key1, 0, 0, 0)
DoEvents
Call keybd_event(key2, 0, 0, 0)
DoEvents
Call keybd_event(key2, 0, 2, 0)
DoEvents
Call keybd_event(key1, 0, 2, 0)
DoEvents
End Sub
'用法
Private Sub Timer1_Timer()
DoubleKey vbKeyAlt, vbKeyC
End Sub
全部回答
- 1楼网友:风格不统一
- 2021-04-03 07:30
WshShell.SendKeys "%(c)"
就这么简单
就这么简单
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯