Sending right ALT+C with PostMessage
问题 I trying to send in my application RIGHT ALT + C . I tried do it following: PostMessage(hWindow, WM_KEYDOWN, (IntPtr)0x0043, (IntPtr)0x0012); Delay(1000); PostMessage(hWindow, WM_KEYUP, (IntPtr)0x0043, (IntPtr)0x0012); and PostMessage(hWindow, WM_KEYDOWN, (IntPtr)0x0043, (IntPtr)0x0001); Delay(1000); PostMessage(hWindow, WM_KEYUP, (IntPtr)0x0043, (IntPtr)0x0001); but it doesn't correctly. How should I used it? 回答1: Yes, it's possible using PostMessage. I used program Spy++ (it's inside Visual