-
I need to know the diff between the left and right control keys. Hey and if I can get the anwser for the left and right on the alt and shift that would great!
This is what I have... Help?
Private Sub Timer1_Timer()
Dim ctl As Boolean
Dim dwn As Boolean
If GetAsyncKeyState(vbKeyControl) Then
ctl = True
End If
If GetAsyncKeyState(vbKeyDown) Then
dwn = True
End If
If dwn And ctl = True Then
Dim result As Long
result = SendMessage(Form1.hWnd, WM_SYSCOMMAND, SC_SCREENSAVE, 0&)
End If
End Sub
-
Take a look at this thread which shows you how to detect the left or right control keys.
-
If you have Windows NT, then you can use the VK_LCONTROL and VB_RCONTROL constants.