← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #271928]: type(xxx, Key.DELETE) don't delete highlighted text

 

Question #271928 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271928

    Status: Open => Answered

RaiMan proposed the following answer:
type(<image of the text highlighted>, Key.DELETE)

would position the cursor somewhere in the middle of the text and then
delete the character next to it.

To select the text, you have to simulate the respective keys, that
select a text and then issue the delete:

e.g.
doubleClick(<image of the text highlighted>)
type(Key.DELETE)

or if the text is already selected simply
type(Key.DELETE)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.