Added keyboard controls.

This commit is contained in:
Cory Walker 2013-06-22 19:32:08 -04:00
parent ee99430c90
commit da36f1c230
1 changed files with 8 additions and 0 deletions

View File

@ -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)