- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我试图在按下 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/
我正在尝试制作一个将 key 发送到外部应用程序的应用程序,在本例中为 aerofly FS。我以前成功使用过 SendKeys.SendWait() 方法,但是这一次,它并没有完全按照我想要的方式工
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.C
我想在后台从我的应用程序中复制事件应用程序中的选定文本。我使用 SendKeys.SendWait()。但我有时会遇到一个问题:一段时间后,我的应用程序只发送“c”而没有“CTRL”(至少只有“c”进
在 C# 中是 SendKeys.SendWait("{TAB}"); java中那是什么? (发送 TAB 键击)? 我在java中找不到真正的答案,java文档也不知道我在问什么。 (我注意到条款
SendKeys.SendWait() 只是一个包装器,这两个代码片段是相同的吗? const int VK_ESCAPE = 0x1B; keybd_event(VK_ESCAPE, 0, 0, 0
我正在尝试在 C# 中执行以下操作: 打开一个新进程(notepad.exe) 输入一些文本(使用 SendKeys) 关闭记事本(处理任何确认对话框) 这是我得到的 Process p = new
我想弄清楚如何将字符“^”(不是 CTRL 命令)发送到外部文本窗口。 我试过的不同代码: SendKeys.SendWait("^"); SendKeys.SendWait("(^)"); Send
我正在使用 SendKeys.SendWait 向其他正在运行的应用程序发送击键。但如果目标应用程序没有最小化,它就不起作用。这种方法有什么问题吗?将击键发送到正在运行的应用程序的其他方法有哪些。 我
我想知道如何使用 SendKeys.send(); 发送 空格键它可以与其他键一起使用,但只能与空格键一起使用!! 这是我找到其他键的链接 http://msdn.microsoft.com/en-u
我试图在按下 C 的同时按住 CTRL,但无法正常工作。我读过 SendKeys Class但是,它仍然不起作用。 这就是我尝试过的: SendKeys.SendWait("^C"); SendKey
我编写了一个程序来将“Enter”键发送到某个事件窗口。我使用 Timer 获取当前事件窗口的标题并采取相应行动。我做了一个错误日志文件,所以我可以跟踪所有的错误。这是造成错误的代码: pri
我的表单上有一个 Timer 控件,带有以下 Tick 事件处理程序: private void timer1_Tick(object sender, EventArgs e) { forea
我是一名优秀的程序员,十分优秀!