我试图同时按下2个按钮( ctrl + Tab ),但我不知道如何操作。
否则,
while (true)
{
Process[] processes = Process.GetProcessesByName("myproc");
foreach (Process proc in processes)
{
PostMessage(proc.MainWindowHandle, WM_KEYDOWN, VK_F5,0);
PostMessage(proc.MainWindowHandle, WM_KEYDOWN, VK_CNTRL,0);
PostMessage(proc.MainWindowHandle, WM_KEYDOWN, VK_TAB,0);
Thread.Sleep(5000);
他们不会按。