Question #238043 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/238043
Status: Open => Answered RaiMan proposed the following answer: --- So it seems like my command "keyDown(Key.SHIFT)" is skipped Surely not: the keyUp()/keyDown() functions do not produce a log message ;-) Before firing the sequence you must be sure, that the table line has the focus somehow (but I guess you are aware of that). I would try this: type(" ",KEY_SHIFT) wait(0.5) keyDown(Key.SHIFT) for i in range(5): # the number of lines to select wait(0.5) type(Key.UP) keyUp(Key.SHIFT) BTW: version 1.1.0 will have this function for that: number_of_lines = 5 write("#W5#S_#SPACE#S+#U%d#S-"%number_of_lines) #W5 - after each real key wait 0.5 seconds #S_#SPACE - obvious ;-) #S+ - press and hold SHIFT key #U5 - 5 times UP key (after interpolation of number_of_lines by the Python format feature %) #S- release SHIFT key and text in between, that cannot be typed will automatically be pasted. What do you think? -- 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 : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp