[Encore] Command box question

Daniel Jung jung at uib.no
Thu Jan 14 05:43:36 MST 2010


paul wrote:
> How does one get on when using $command_utils:read ie  n = toint($command_utils:read("your name"));
> I've tested the code in v4 - without error. 
> Is there something extra required with $command_utils:read??

Yes. Patience.

The 5b is not flawless in taking non-talk user input via chat. The 
input/output model has completely changed, ALL input is now 
HTML/webserver-communication instead of the old, direct socket thing. (I 
won't be discussing the pros and cons here and now.) Some verb stacks 
(command-IDs) are put into queues or oppressed along the way in order to 
make that work. I noticed that some chains wouldn't work as expected; 
especially when using read() - that should always go through the command 
utils, but you have that - and if using more than one of those pr. verb. 
Maybe wiz bits? What perms do you run your verbs with (whole stack)?

When working on 5, I put as much non-chat out of the chat as I possibly 
could. You will notice that most input-things (like @configure, @page, 
start recorder, connect intercom devices) are now web forms outside the 
chat (which itself is a web form), which comply to the new webserver 
communication model.

The old style moo-read() is nice and fast, and writing it is simple and 
works - if you have firewalls down, sockets open and java to run it (and 
a user who doesn't mind doing command type style). However, you might 
run into problems. I wonder if you would consider writing web forms for 
the user to fill in the desired input. More work, I admit that!

Good luck
- Daniel



More information about the Encore mailing list