c++ - send scancode to my application -



c++ - send scancode to my application -

i have question scan code , extended ok .

i create simple window in c++ , want observe wm_keyup ( vk_up value )

now run spy++ , press key observe message

keydown vk_up crepeat1 scancode 48 extended1 altdown0 frepeat1 up0

now if send message application next message

sendmessage ( wnd , wm_keydown , vk_up ,1); keydown vk_up crepeat1 scancode 00 extended0 altdown0 frepeat1 up0

you see different in scan code , other value.

my question why different send same message? 2 there way send scan code ( , other value application , same value )

not sure why difference can utilize keybd_event or sendinput function synthesize keystrokes.

c++ winapi

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -