clear the input box

Asked by alonso

How can i clear an input box before I do a Type("hello") ?

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
Tsung-Hsiang Chang (vgod) said :
#1

Try this:
type("a", KEY_CTRL) # use KEY_META for Mac
type(Key.BACKSPACE)

Can you help with this problem?

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

To post a message you must log in.