Press SHIFT+HOME

Asked by vitalliuss

Hi,

I've got an issue with pressing SHIFT+HOME combination (select all text in the line before mouse pointer).

Several solutions have been checked:
1) type(KEY_SHIFT, Key.HOME)
2) type(Key.HOME, KEY_SHIFT)
3) type(Key.HOME, KeyModifier.SHIFT)
4) type(KeyModifier.SHIFT, Key.HOME)
5) keyDown(Key.HOME)
     type(Key.SHIFT)
     type("some text")
     keyUp(Key.HOME)
6) keyDown(Key.SHIFT)
     type(Key.HOME)
     type("some text")
     keyUp(Key.SHIFT)

And no luck anywhere.

Sikuli X-1.0rc3 (r905) on Windows7 x32.

Could you please assist?

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

3) type(Key.HOME, KeyModifier.SHIFT)

is the correct version.

It seems, that you have to take care, that NUM-LOCK is off during this operation (Java issue).

see https://answers.launchpad.net/sikuli/+question/143874

Revision history for this message
vitalliuss (vitalliuss) said :
#2

Thanks RaiMan, this solves my question.

Revision history for this message
vitalliuss (vitalliuss) said :
#3

Thanks RaiMan, that solved my question.