The problem is not the allocation of a key.
The FSUIPC window (key presses) I use only to test whether the keystroke is recognized.
The real problem is: why the key sendet by the VB.6 program (keybd_event) does not find the way into the FSUIPC (only in prepare3D !).
FSUIPC version 4.962
Prepare3D 3.4.22.19868
Simconnect 3.4.0.0
VB.6 8176
I had no problems of this kind with all MS Simis.
In the Appendix: VB.6 Program Extraction
Greatings
H.P.
VB Program Extraction
' *************************** Keys ********************************
Public Sub KeyDown(ByVal vKey As KeyCodeConstants)
keybd_event vKey, 0, 0, 0
End Sub
Public Sub KeyUp(ByVal vKey As KeyCodeConstants)
keybd_event vKey, 0, 2, 0
End Sub
keybd_event
The keybd_event function synthesizes a keystroke. The system can use such a synthesized keystroke to generate a WM_KEYUP or WM_KEYDOWN message. The keyboard driver's interrupt handler calls the keybd_event function.
Windows NT: This function has been superseded. Use SendInput instead.
VOID (
BYTE bVk, // virtual-key code
BYTE bScan, // hardware scan code
DWORD dwFlags, // flags specifying various function options
DWORD dwExtraInfo // additional data associated with keystroke
);