且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在目标应用程序中使用C#结果“v”模拟键盘敲击ctrl + v

更新时间:2022-11-18 11:48:22

MSDN - SendKeys.Send:
MSDN - SendKeys.Send:

要指定与SHIFT,CTRL和ALT键的任意组合组合的键,请在键码前面加上一个或多个以下代码。

To specify keys combined with any combination of the SHIFT, CTRL, and ALT keys, precede the key code with one or more of the following codes.

SendKeys.Send("^v");

b $ b ---

SendKeys.Send方法(字符串)(System.Windows.Forms) [ ^ ]