Hi Rob,
Thanks for the pointer. I hadn't seen the Wren work, since I'd only been
following the 1.9 release. I've now had a read through Wren.adoc in git
and it's far more extensive than what I put together. It goes a long way
past session automation.
The two things my patch adds that I couldn't find there are a blocking
send/expect style of script (expect "Login:", send the name, wait for
one of several prompts with a timeout, branch on which one came back),
and a recorder that turns a live session into a replayable script.
Those are what I was mainly after, for login scripts and for driving
door games.
My patch is against 1.9 and won't carry over to 1.10, since the menu
code it hooks into has moved to Wren. So rather than maintain a Lua fork
long term, I'll look at doing expect/send and the recorder as a Wren
package for 1.10, along the lines of the Yankee Trader one. In the
meantime the Lua patch will stay a clearly labelled 1.9 add-on.
If Deuce has any thoughts on whether something like that would be
useful, or would rather it be done a particular way, I'm happy to hear
them.
Thanks again,
Michael
---
■ Synchronet ■ Kalgoorlie Retro BBS, Kalgoolrie, WA
|