-
Notifications
You must be signed in to change notification settings - Fork 2
libs.keyboard
disfated edited this page Apr 16, 2011
·
1 revision
Keyboard abstraction layer.
-
To specify several keys join them with
"+":"ctrl+a". -
Keycodes are case-insensitive.
TODO: Key codes...
-
Windows - supported (requires:
pywin32); -
Unix - supported (requires:
Xlib); -
Mac - not supported (requires: );
from libs import keyboard as key
key.press('plus')
key.press('minus')
key.press('f1')
key.press('ctrl+alt+del')
-
keyboard.down(keys)
Press down given keyboardkeys.
Returnsself. -
keyboard.up(keys)
Release given keyboardkeys.
Returnsself. -
keyboard.press(keys)
Press (press down & release) given keyboardkeys.
Returnsself. -
keyboard.sleep(seconds)
Just a handy clone of standarttime.sleep()for cozy chaining.
Returnsself.