def route_volume_down():
    return press_key(UCKeyCode('XF86AudioRaiseVolume', None, None, None))
def route_volume_mute():
    return press_key(UCKeyCode('XF86AudioMute', None, None, None))
def route_volume_previous():
    return press_key(UCKeyCode('XF86AudioPrev', None, None, None))
def route_volume_up():
    return press_key(UCKeyCode('XF86AudioLowerVolume', None, None, None))
def route_volume_play():
    return press_key(UCKeyCode('XF86AudioPlay', None, None, None))
def route_volume_next():
    return press_key(UCKeyCode('XF86AudioNext', None, None, None))
Example #7
0
def route_keys_return():
    return press_key(UCKey.UC_RETURN)
def char(key):
    key_code = get_key_by_text(key.upper())
    press_key(key_code)
    print 'Received char: %s' % key
Example #9
0
def route_keys_escape():
    return press_key(UCKey.UC_ESCAPE)
Example #10
0
def route_keys_right():
    return press_key(UCKey.UC_RIGHT)
Example #11
0
def route_keys_left():
    return press_key(UCKey.UC_LEFT)
Example #12
0
def route_keys_down():
    return press_key(UCKey.UC_DOWN)
Example #13
0
def route_keys_up():
    return press_key(UCKey.UC_UP)