@inlineCallbacks def do_calls(pbroot): # get a handler to the client ch = CliFuncs(pbroot) yield ch.vnc(action='start_listen', value='/viewonly') yield ch.winreg(reg_dict={}) result = yield ch.execute(cmd='%WINDIR%\\notepad.exe') yield myend(result)