Question #265505 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265505
Description changed to: Hi, I have manage to substract List B from List A but keeping the List A index, using this... a = ["car", "plane", "truck", "motorcycle", "jet", "train"] b = ["plane", "jet"] c = [i for i, v in enumerate(a) if v not in b] print (c) # this give the result [0,2,3,5] In order to latter use it in... hover(sortedMatches[c[0]] hover(sortedMatches[c[1]] to hover the mouse on a given item skipping the repeated ones (hope Im not braking any syntax rule) I have the list "b" preset in python, My problem is that the list "a" come from clipboard content (always is different). Is there a way to convert the clipboard content into list "a" in the run (interactively) so that I can have the same result??? I have tried a = Env.getClipboard() a = App.getClipboard(); both gave me this result... [0, 1, 2, 3, 4, ... 51, 52, 53, 54] Thanks Advanced. -- You received this question notification because you are a member of Sikuli Drivers, which 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

