← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #209668]: How to hold "shift" + click + drag?

 

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

RaiMan posted a new comment:
tested with Mac 10.9 and Sikuli 1.0.1:

-- this works in Finder: (selects a series of files)
switchApp("Finder")
w = App.focusedWindow()
w.highlight(1)
hover(w.aboveAt(85).right(70))
click(atMouse())
click(atMouse().below(145), KeyModifier.SHIFT)

-- and this works on Finder too:
switchApp("Finder")
w = App.focusedWindow()
w.highlight(1)
hover(w.aboveAt(85).right(70))
click(atMouse())
keyDown(Key.SHIFT)
click(atMouse().below(145))
keyUp()

-- and this works on Safari: (selects a paragraph of text)
switchApp("Safari")
w = App.focusedWindow()
w.highlight(1)
click(find("1387529851452.png").leftAt(-10))
keyDown(Key.SHIFT)
click(w.find("1387529982182.png").aboveAt(-10))
keyUp()
click(w.find("1387529982182.png").aboveAt(-10), KeyModifier.SHIFT)

-- and this works on Safari too 
switchApp("Safari")
w = App.focusedWindow()
w.highlight(1)
click(w.find("1387529851452.png").leftAt(-10))
click(w.find("1387529982182.png").aboveAt(-10), KeyModifier.SHIFT)

You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.