SikuliX
click at specific location
# e.g. click left at position 700x400 for 100 milliseconds
# valid mouse clicks are:
# L: left
# M: middle
# R: right
# D: double
Mouse.click(Location(700, 400), 'L', 100)
# Location can be "corrected" using 'Offset'
Mouse.click(Location(700, 400).Offset(2, 34), 'L', 100)
function tripleClick()
source: https://stackoverflow.com/questions/2250528/how-would-i-triple-click-in-sikuli
def tripleClick(PSMRL):
hover(PSMRL)
for x in xrange(3):
mouseDown(Button.LEFT)
mouseUp()
key combinations
list of keys: http://doc.sikuli.org/keys.html
# CTRL+HOME
type(Key.HOME, KeyModifier.CTRL)
# ALT+F4
type(Key.F4, KeyModifier.ALT)
# CTRL+v
type('v', KeyModifier.CTRL)
# CTRL+ALT+ESC
type(Key.ESC, KeyModifier.CTRL+KeyModifier.ALT)