|
-
Sep 18th, 2000, 10:44 AM
#1
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
-
Sep 18th, 2000, 01:52 PM
#2
Take a look at this thread which shows you how to detect the left or right control keys.
-
Sep 18th, 2000, 02:46 PM
#3
If you have Windows NT, then you can use the VK_LCONTROL and VB_RCONTROL constants.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|