SendKeys.Send("^c"); //does not work.
SendKeys.Send("^{BREAK}"); //Also does not work.
SetClipboardData(13 or 7, hWnd); //Also does not work.
SendMessage(GetForegroundWindow(), WM_COPY, IntPtr.Zero, IntPtr.Zero); (const int WM_COPY = 0x0300;)
SendCtrlC(GetForegroundWindow()); //from http://stackoverflow.com/a/273163/1386831 fails
所有这些都失败了..
Clipboard.GetData()
当您尝试复制的内容在当前应用程序之外时,有什么替代方法可以调用?