How to use keys of HOME and SHIFT to select text --- Num_Lock must be off
Asked by
Stranger
**** solution
switch it off manually
or (currently only works on Win10 (see related bug))
- check NUM_LOCK state with Key.isLockOn(
- if True (toggle is on) switch it off using type(Key.NUM_LOCK)
-------
I want to select one line text in script by combined keys of HOME and SHIFT, but it dosen't work.
My script is :
type(Key.END)
wait(1)
type(Key.HOME, Key.SHIFT)
wait(1)
type('C', Key.CTRL)
wait(1)
print Env.getClipboard()
But from UI, the line text can't be selected. Is there any problem in my script? Thanks
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
This question was reopened
- by Stranger
Can you help with this problem?
Provide an answer of your own, or ask Stranger for more information if necessary.
To post a message you must log in.