How do I copy text? --- just simulate copy&paste using type()

Asked by Raymond

Is there an easier, more efficient way than doing this?
type("a", KEY_CMD)
all_text = type("c", KEY_CMD)

I mean, is there some built-in function that will automatically copy highlighted text to clipboard?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

The answer is simply NO.

In some cases Region.text() might be easier -- sometimes ;-)

Can you help with this problem?

Provide an answer of your own, or ask Raymond for more information if necessary.

To post a message you must log in.