如何发送"Ctrl + c"在西库里? [英] How to send "Ctrl + c" in Sikuli?

查看:96
本文介绍了如何发送"Ctrl + c"在西库里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这感觉应该很简单,但是我找不到有关如何执行此操作的文档:

This feels like it should be pretty easy but I can't find documentation on how to do this:

我只希望Sikuli键入 Ctrl + C 将文本复制到剪贴板.

I just want Sikuli to type Ctrl+C to copy text to the clipboard.

type(KEY_CTRL+'c')不起作用,type(KEY_CTRL,'c')也不起作用.

type(KEY_CTRL+'c') doesn't work and neither does type(KEY_CTRL,'c').

有什么建议吗?

推荐答案

尝试改用type("c",KEY_CTRL).

我写了一个简单的脚本,在记事本中键入一行,双击将其标记,然后再次按ctrl + x ctrl + v将其插入文档.效果很好.

I wrote a simple script which types a line in notepad, double clicks it to mark it and then ctrl+x ctrl+v it into the document again. Works great.

openApp("notepad.exe")

find("textfield.png" )
type("Some text")
doubleClick("theText.png")

type("x", KEY_CTRL)

click("theTextField.png" )
type("v",KEY_CTRL)

这篇关于如何发送"Ctrl + c"在西库里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆