|
liujc Beginner
Joined: 02 Mar 2007 Posts: 23 Location: China, BeiJing
|
Posted: Sun Mar 11, 2007 8:44 am
How to send a command to zmud? |
When I try to buy something and input "list" command, a lot of goods show up, and here is my mud:
== not finished 52% == (ENTER next,q quit,b back)
I use:
#trig {ENTER next,q quit,b back} {#exec {a;a}}
But it doesn't work. I have to press ENTER key and then "a;a" shows up. How to send a "ENTER" to zmud? |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sun Mar 11, 2007 1:23 pm |
#TRIGGER "pager" {== not finished %d% == ~(ENTER next,q quit,b back~)} {#CR} "" {prompt|nocr}
#CR sends a carriage return i.e. [enter] the prompt|nocr options tell it to trigger on a line without a newline (mud prompt, most login questions, etc)
Optionally turn up or off your muds page length/scroll command if available. |
|
|
|
liujc Beginner
Joined: 02 Mar 2007 Posts: 23 Location: China, BeiJing
|
Posted: Sun Mar 11, 2007 5:28 pm |
It worked. Thanks!
|
|
|
|
|
|