This feels like it should be pretty easy but I can't find documentation on how to do this:
I just want Sikuli to type Ctrl+C to copy text to the clipboard.
type(KEY_CTRL+'c')
doesn't work and neither does type(KEY_CTRL,'c')
.
Any suggestions?
Execute a mouse right click action on a target. To define a right-click action, write the word right click in a text box. You can also write aliases such as right-click or rightclick . Then, draw a rectangle around the target.
Try using type("c",KEY_CTRL)
instead.
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)
The following works in 0.9 and newer versions of sikuli
type('x', KeyModifier.CTRL)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With