上一篇 | 下一篇

vb程序中热键的设置

发布: 2008-7-15 14:46 | 作者: 网络转载 | 来源: 网络转载 | 查看: 11次

Option Explicit

Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer

Private Sub Form_Load()

Timer1.Interval = 1

End Sub

Private Sub Timer1_Timer()

If GetAsyncKeyState(vbKeyF2)<0 Then ...

If GetAsyncKeyState(vbKeyF2)<0 and GetAsyncKeyState(vbKeyF3)<0 Then ...

End Sub

TAG: 程序 设置 热键

字号: | 推荐给好友

评分:0

我来说两句