0

我有我的 C# 程序。我想要我的程序叫做 teamviewer foreground 并写一些数字。这次可以调用teamviewer作为前台但不能写入它。

已经尝试过使用senkeys,但不起作用!sendkeys 在记事本和计算器中工作,但 teamviewer 不工作:/

[DllImport("user32.dll")]
private static extern bool SetForegroundWindow(IntPtr hWnd);

Process p = Process.GetProcessById(processID);
SetForegroundWindow(p.MainWindowHandle);

在此之后,我想将 senkeys 发送到 teamViewer....

有人可以帮助我吗???谢谢

4

0 回答 0