Postmessage and Shift or ALT

  • Thread starter Thread starter Klaus Dasenbrock
  • Start date Start date
K

Klaus Dasenbrock

Hi, i send with
PostMessage(HWND, WM_KEYDOWN, Keys.K, IntPtr.Zero)

to the notepad the letter k

now i wanna send with postmessage
Shift+a =A, Shift++=* or Shift+1=!
how can i do this with POSTMESSAGE ?
 
Klaus Dasenbrock said:
PostMessage(HWND, WM_KEYDOWN, Keys.K, IntPtr.Zero)

to the notepad the letter k

now i wanna send with postmessage
Shift+a =A, Shift++=* or Shift+1=!
how can i do this with POSTMESSAGE ?

I doubt that this is even possible with 'WM_KEYDOWN' for the Alt key:

| The 'WM_KEYDOWN' message is posted to the window with the
| keyboard focus when a nonsystem key is pressed. A nonsystem key
| is a key that is pressed when the ALT key is /not/ pressed.
 
Back
Top