gpt4 book ai didi

c# - C# 中的 SendKeys.SendWait 方法,模拟 CTRL+C

转载 作者:行者123 更新时间:2023-11-30 14:37:01 27 4
gpt4 key购买 nike

我试图在按下 C 的同时按住 CTRL,但无法正常工作。我读过 SendKeys Class但是,它仍然不起作用。

这就是我尝试过的:

SendKeys.SendWait("^C");
SendKeys.SendWait("{^C}");
SendKeys.SendWait("^{C}");
SendKeys.SendWait("^(C)");
SendKeys.SendWait("(^{C})");

最佳答案

你需要放在括号里。示例:

SendKeys.SendWait("^(c)");

注意 c 应该是小写的。区分大小写

关于c# - C# 中的 SendKeys.SendWait 方法,模拟 CTRL+C,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9789214/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com