!7 cmodule KeyMouseRobot > DynPrintLog { switchable int port = 8083; start-thread { startDialogServer(port, new DialogHandler { public void run(DialogIO io) { while (io.isStillConnected()) { if (io.waitForLine()) { String line = io.readLineNoBlock(); S s = dialogID + " at " + now() + ": " + quote(line); print(s); if (eq(line, "bye")) ret with io.sendLine("bye stranger"); try { S answer = answer(line); io.sendLine(str(answer)); } catch print e { io.sendLine(str(e)); } } } } }); } S answer(S s) { new Matches m; if (swic_trim(s, "mouseWheel ", m)) { awtRobot().mouseWheel(m.psI(0)); ret "OK"; } null; } }