kspgame ksp
kspgame ksp

Reputation: 11

Window still works in the background

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

Answers (1)

Jim Mack
Jim Mack

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

Related Questions