Reputation: 11
I am Trying to run in the background window When he becomes inactive window and , i want that Still work and Recognizes the pressing Of The keyboard I use Visual Basic version 6 Can it be done
My simple Code:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 37 Then
MsgBox ("The left arrow was pressed")
End If
End Sub
Upvotes: 1
Views: 49
Reputation: 1144
Ordinarily a Windows program receives messages only for its own windows. What you might try is installing a journaling hook to see messages for all top-level windows. This requires some care and attention so tread carefully.
Upvotes: 1