I need a function to simulate Shift+AnyKey keystrokes.
The function should send a message to any window:
Public Sub SendKeys(hwnd as IntPtr, key as Keys, shift as Boolean)
The function should use PostMessage or SendMessage with WM_KEYUP or WM_KEYDOWN parameter (whatever you think it's best). WM_CHAR will not be accepted.
You will probably need SetKeyBoardState as well.
Please upload a sample exe with a button and a TextBox. The button should use the function:
SendKeys([url removed, login to view], Keys.A, True)
Of course, the textbox will display "A" after the button is clicked.
After you send the sample and guarantee you implemented the function as requires above, I will accept the bid.
The function is not so easy as it seems.
I am aware it doesn't work just by sending 3 messages:
Please pay attention to the requirements and I will pay for your efforts.