|
roncli Wanderer
Joined: 07 Sep 2002 Posts: 63 Location: USA
|
Posted: 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 |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: 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 |
|
|
|
roncli Wanderer
Joined: 07 Sep 2002 Posts: 63 Location: USA
|
Posted: 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 |
|
|
|
|
|