Key Modifiers not working ?

Asked by Tony Becker

Hi, I have read various questions relating to Key Modifiers but nothing I do seems to work.

I am trying to click into a field, highlight the entire contents of the field and delete it prior to entering my own value.

thus my code look slike this;

click( <image> ) #this works ok
type( Key.HOME )
type( Key.END, KeyModifier.SHIFT )
type( Key.BACKSPACE )

Unfortunately the SHIFT does not seem to "take", so instead of highlighting the contents of the field the cursor just moves to the end of the field.

What am I doing wrong?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1
Revision history for this message
Tony Becker (tnybecker) said :
#2

Thanks RaiMan, that solved my question.

Revision history for this message
Tony Becker (tnybecker) said :
#3

Aha! A known problem. Thank you for this. Just loving Sikuli btw. Amazing!