

Private Declare Function GetAsyncKeyState Lib "user32" Alias "GetAsyncKeyState" (ByVal vKey As Long) As IntegerPrivate Sub Timer1_Timer()
Timer1.Interval=50
Timer1.Interval = 50
If GetAsyncKeyState(vbKeyC) < 0 And GetAsyncKeyState(18) < 0 And GetAsyncKeyState(vbKeyControl) < 0 Then MsgBox "Ctrl+Alt+C"
'18 - код клавиши Alt
End Sub

Сейчас этот форум просматривают: SemrushBot и гости: 12