def _process_recognition(self, node, extras): x = extras["xcoord"] y = extras["ycoord"] x = numbers.get(x, x) y = numbers.get(y, y) x = 1280 * int(x) / 10 y = 800 * int(y) / 10 with ComSat() as cs: rpc = cs.getRPCProxy() rpc.callMouse(x, y) if "zap" in extras: rpc.callClick(1)
def _process_recognition(self, node, extras): command = self.commands[str(extras.get("command", "work"))] identifier = NUMBERS.get(extras["identifier"]) with ComSat() as connection: connection.getRPCProxy().callKeyStack(" ".join([awesome] + command + [identifier]))
def _process_recognition(self, node, extras): button = str(extras.get("cmd", 1)) button = int(numbers.get(button, button)) with ComSat() as cs: rpc = cs.getRPCProxy() rpc.callClick(button)