Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
roncli
Wanderer


Joined: 07 Sep 2002
Posts: 63
Location: USA

PostPosted: Fri May 02, 2003 12:52 am   

Macro for command line
 
I would like to make a macro (CTRL-SPACE incidentally) that would take what's in the command line, throw it in a variable, and empty the command line. I've searched the help file back and forth, but can't find something that will do this. Is there a way to accomplish this?

thanx
-roncli

-roncli
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Fri May 02, 2003 5:43 am   
 
How about:
1) Option:
Auto Clear Input (local)

If set, the command input line is cleared when Enter is pressed. Otherwise the text in the command line is not cleared but is simply highlighted (default). When the command line is highlighted, any text that you type automatically overwrites the highlighted text, so this works similar to auto-clearing but allows you to send the same command in a row several times by just hitting Enter multiple times.

2)
#ONINPUT {^&%*{LastCommandInput}$} {}
Use %* pattern at own risk.

3)
#KEY <CTRL-SPC> {#SH %expand(@LastCommandInput,1)}


Ton Diening
Edit change Trigger to Oninput
Reply with quote
roncli
Wanderer


Joined: 07 Sep 2002
Posts: 63
Location: USA

PostPosted: Tue May 06, 2003 2:20 am   
 
The problem with that is that I would have to actually hit ENTER first (send the command) and then use CTRL-SPC. I would like to be able to use CTRL-SPC *instead* of ENTER. I was hoping there was some built in function to reference what's currently in the command line, like %lastcommandinput.

-roncli
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net