sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #17125
Re: [Question #224844]: Selecting a single line in text editor, number lock
Question #224844 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/224844
Description changed to:
I'm trying to select a single line in notepad so i can change its
formatting.
I'm using this line to select it but it only works when number lock is
off (really confusing me)
type(Key.HOME, KeyModifier.SHIFT)
When number lock is off it selects just fine, but when it is on nothing
is selected and the cursor is positioned at the beginning of the line.
I get the same results when I use this code instead.
keyDown(Key.SHIFT + Key.HOME)
keyUp()
I'm aware of Env.isLockOn(key-constant) but I don't understand how it functions. Is it like an if statement?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.