I am having trouble with creating lparam for postmessage. I know that application gets such key:
WM_KEYDOWN nVirtKey: VK_CONTROL cRepeat:1 ScanCode: 1D fExtended:0 fAltDown:0 fRepeat:0 fUp:0
WM_KEYDOWN nVirtKey: VK_LEFT cRepeat:1 ScanCode: 4B fExtended:1 fAltDown:0 fRepeat:0 fUp:0
WM_UP nVirtKey: VK_LEFT cRepeat:1 ScanCode: 4B fExtended:1 fAltDown:0 fRepeat:1 fUp:1
WM_UP nVirtKey: VK_CONTROL cRepeat:1 ScanCode: 1D fExtended:0 fAltDown:0 fRepeat:1 fUp:1
could you tell me how I am supposed to create that lparam? I have read msdn, and I have made such lparam: 0x00011D00
and 0x00011D03
but they send such crap:
WM_KEYDOWN nVirtKey: VK_CONTROL cRepeat:7424 ScanCode: 01 fExtended:0 fAltDown:0 fRepeat:0 fUp:0
WM_KEYDOWN nVirtKey: VK_LEFT cRepeat:1 ScanCode: 00 fExtended:0 fAltDown:0 fRepeat:0 fUp:0
WM_UP nVirtKey: VK_LEFT cRepeat:1 ScanCode: 00 fExtended:0 fAltDown:0 fRepeat:0 fUp:0
WM_UP nVirtKey: VK_CONTROL cRepeat:7427 ScanCode: 01 fExtended:0 fAltDown:0 fRepeat:0 fUp:0