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

I have an issue that I really can't figure out what happens. I have the 
following method which I believe is fairly straight forward, I'd like to click 
at a tree in my program and then use the keyboard to guide sikuli to the right 
items in the tree. It works when doing these combination manually, but when 
sikuli runs it, the first click seems to repeat itself each time I call for the 
type(KeyModifier.SHIFT, Key.DOWN) command. Code and log follows:

def select_item_in_cluster(startpoint, endpoint):
    click(Pattern('tree_image.png').exact())
    type('folder_in_tree')
    type(Key.RIGHT) #open a subfolder
    type(startpoint) #click at an item in the subfolder - 7 in this case
    for __ in range(int(startpoint), int(endpoint)): #mark a bunch of items
        type(KeyModifier.SHIFT, Key.DOWN) 
        sleep(1)
    type(Key.ENTER)

>From the sikuli logfile I get the following:
[log (7/17/19 2:16:10 PM)] CLICK on L(44,234)@S(0)[0,0 1920x1200]
[log (7/17/19 2:16:10 PM)]  TYPE "folder_in_tree"
[log (7/17/19 2:16:12 PM)]  TYPE "#RIGHT."
[log (7/17/19 2:16:13 PM)]  TYPE "7" 
[log (7/17/19 2:16:14 PM)] CLICK on L(44,234)@S(0)[0,0 1920x1200]
[log (7/17/19 2:16:15 PM)]  TYPE "#DOWN."
[log (7/17/19 2:16:16 PM)] CLICK on L(44,234)@S(0)[0,0 1920x1200]
[log (7/17/19 2:16:16 PM)]  TYPE "#DOWN."
[log (7/17/19 2:16:17 PM)] CLICK on L(44,234)@S(0)[0,0 1920x1200]
[log (7/17/19 2:16:17 PM)]  TYPE "#DOWN."
[log (7/17/19 2:16:18 PM)] CLICK on L(44,234)@S(0)[0,0 1920x1200]
[log (7/17/19 2:16:19 PM)]  TYPE "#DOWN."
[log (7/17/19 2:16:20 PM)]  TYPE "#ENTER."

Am I doing something wrong here or is this a bug?

-- 
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