请教向程序发送快捷键无效,求解
Process[] thisproc = Process.GetProcessesByName(应用程序名);
IntPtr hWnd = thisproc[0].MainWindowHandle;
SendMessage(hWnd, 0x0104, 0x74, 0x20380001);
Thread.Sleep(10);
SendMessage(hWnd, 0x0105, 0x74, 0x20380001);
对应用程序无效
------解决方案--------------------Process[] thisproc = Process.GetProcessesByName(应用程序名);