
Question: using SendMessage via DllImport
Well I figured out the copy part,
SendMessage(WindowFromPoint(MyPoint),WM_COPY,0,0);
but I can't figure out the select all part. Can anyone help me here?
Thanks.
Quote:
> I have the handle to the window that I want to send the keystrokes to
> and I have this:
> [DllImport("user32.dll")]
> private static extern bool SendMessage(
> IntPtr hWnd, // handle to destination window
> UInt32 Msg, // message
> Int32 wParam, // first message parameter
> Int32 lParam // second message parameter
> );
> Now how do I use this to send Ctrl-A to select all and then Ctrl-C to
> copy? What is the syntax?
> Thanks