Press SHIFT Key and then END Key to select a list of entries in a table

Asked by Mahaling

Please help to Press SHIFT Key and then END Key to select list of values in a table.

I tried

keyDown(Key.SHIFT)
type(Key.END)
keyUp(Key.SHIFT)

But the Cursor comes till the END of the table , but no records are selected.

I tried with SHIFT and Page Down , where the behaviour was the same

Please help to resolve the issue

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

with version 1.1.0

type(Key.END, Key.SHIFT)

... but I guess you first have to select the starting element.

SikuliX does not do any magic, it just does what you would do manually.

Revision history for this message
Mahaling (mahaling046) said :
#2

I have selected the first entry in the table and then executed the command type(Key.END, Key.SHIFT)

I tried type(Key.END, Key.SHIFT) but it failed with the below error

ERROR:

[log] CLICK on (192,130)

[error] Stopped
[error] An error occurs at line 2
[error] Error message: Traceback (most recent call last):
 File "C:\Users\byod\AppData\Local\Temp\sikuli-tmp4989871196775013133.py", line 2, in
 type(Key.END, Key.SHIFT)
 Line 2, in file C:\Users\byod\AppData\Local\Temp\sikuli-tmp4989871196775013133.py

 at org.sikuli.script.Region.handleFindFailed(Region.java:420)
at org.sikuli.script.Region.wait(Region.java:511)
at org.python.proxies.sikuli.Region$Region$0.super__wait(Unknown Source)
at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)

org.sikuli.script.FindFailed: FindFailed: can not find ? on the screen.
 Line 2, in file C:\Users\byod\AppData\Local\Temp\sikuli-tmp4989871196775013133.py

Revision history for this message
RaiMan (raimund-hocke) said :
#3

Sure you are using version 1.1.0 (http://sikulix.com)

I just checked: it does what it should: extending the selection to the end

Can you help with this problem?

Provide an answer of your own, or ask Mahaling for more information if necessary.

To post a message you must log in.