Hi i'm trying to understand keybd_event a little more, and was testing it on other programs and find that it doesnt do the same as it would if I press the keys myself. On word pad it seems to do what I tell it to do in code fine but when I use it on other programs it doesnt do the same.
For examplepress the Numpad 0 making a 0 in word pad but when I use the same way on another program that used the numpad 0 to do things it doesnt react as if I was to just press the key. Tried using spy++ to see what it got, and I found it had a WM_CHAR in the middle of the WM-keyup and down. The Char showed 2 differnt things when I used either the code above and when I just pressed the key myself. Was giving me a wParam 0x00000030 and a lParam of 0x00520001 with a normal pressing and a wParam 0x00000030 and lParam of 0x003c0001 when I used that code above. I tried look it up on NSDM but I kinda dont unerstand the site and was hoping someone could help me make sencs on whats happening and could give me a little soure code to help me out on what I could fixs?Code:keybd_event(VK_NUMPAD0,60,0,0); keybd_event(VK_NUMPAD0,60, KEYEVENTF_KEYUP, 0);