Added keyboard controls.
This commit is contained in:
parent
ee99430c90
commit
da36f1c230
|
@ -97,6 +97,14 @@ def mouse_move(x, y):
|
|||
c = "mousemove %d %d" % (x, y)
|
||||
return run_command(c)
|
||||
|
||||
def type_string(string):
|
||||
c = "type '%s'" % string
|
||||
return run_command(c)
|
||||
|
||||
def key(keyname):
|
||||
c = "key %s" % keyname
|
||||
return run_command(c)
|
||||
|
||||
def click(btn):
|
||||
c = "click %d" % btn
|
||||
return run_command(c)
|
||||
|
|
Loading…
Reference in New Issue