Different lParam from real keyboard

Oct 7, 2013 at 5:02 PM
Hello! Checking keypressing through spy++, I saw that there is difference between real keyboard press and InputSimulator:
Real keypress:
WM_KEYDOWN nVirtKey:VK_LEFT cRepeat:1 ScanCode:4B fExtended:1 fAltDown:0 fRepeat:0 fUp:0
wParam: 00000025
lParam: 014B0001
WM_KEYUP nVirtKey:VK_LEFT cRepeat:1 ScanCode:4B fExtended:1 fAltDown:0 fRepeat:1 fUp:1
wParam: 00000025
lParam: C14B0001

Simulate keypress by InputSimulator:
WM_KEYDOWN nVirtKey:VK_LEFT cRepeat:1 ScanCode:00 fExtended:0 fAltDown:0 fRepeat:0 fUp:0
wParam: 00000025
lParam: 00000001
WM_KEYUP nVirtKey:VK_LEFT cRepeat:1 ScanCode:00 fExtended:0 fAltDown:0 fRepeat:1 fUp:1
wParam: 00000025
lParam: C0000001

I found where i can change ScanCode in InputSimulator's source, but how can i change lParam?
Thanks.