Warning: session_start(): open(/var/lib/php/sessions/sess_65krs7o9h3hil2bdvpgaelf1to, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
cmodule KeyMouseRobot > DynPrintLog {
switchable int httpPort = 8083;
start-thread {
startDialogServer(8084, 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;
}
}