[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] private static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam); private const int WM_PASTE = 0x0302; public void Paste() { Process proc = Process.GetCurrentProcess(); SendMessage(proc.MainWindowHandle, (UInt32)WM_PASTE, (IntPtr)0, (IntPtr)0); }
WM_PASTE
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)