Question #682117 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/682117

    Status: Open => Answered

Manfred Hampl proposed the following answer:
Looking at https://sikulix-2014.readthedocs.io/en/latest/keys.html#key-
modifiers-modifier-keys you command seems the wrong way around:

the plain type() command has 2 parameters:
•parameter 1: the keys, that should be pressed/released one after the other
•parameter 2: the modifier keys, that alltogether should be pressed and held 
during the typing and released at the end.

So I thought it should be
type(Key.DOWN, Key.SHIFT)

If this doesn't work either, then I suggest trying a workaround:

     …
     type(startpoint) #click at an item in the subfolder - 7 in this case
     keyDown(Key.SHIFT)
     for __ in range(int(startpoint), int(endpoint)): #mark a bunch of items
         type(Key.DOWN)
         sleep(1)
     keyUp(Key.SHIFT)
     type(Key.ENTER)
     …

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to