← Back to team overview

sikuli-driver team mailing list archive

[Question #224844]: Selecting a single line in text editor

 

New question #224844 on Sikuli:
https://answers.launchpad.net/sikuli/+question/224844

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 unable to 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.