|
Feed_Error Newbie
Joined: 02 Apr 2004 Posts: 5 Location: Australia
|
Posted: Fri Apr 02, 2004 11:51 pm
command history |
How do you make it so commands that are less than 3 characters long are added to the command history?
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sat Apr 03, 2004 12:10 am |
This can not be adjusted, and there is no direct script control of what the history contains. So there really is no way to do that, but I could be wrong.
|
|
|
|
Feed_Error Newbie
Joined: 02 Apr 2004 Posts: 5 Location: Australia
|
Posted: Sat Apr 03, 2004 12:25 am |
hmmm sucks, such a basic option.
wanted to use !! as a macro to do last command.
hate having last command in command line. |
|
|
|
Hibio Beginner
Joined: 19 Mar 2004 Posts: 22
|
Posted: Sat Apr 03, 2004 12:51 am |
You can always try to log your own commands then do the recall there, instead of using the buildin function...
|
|
|
|
Feed_Error Newbie
Joined: 02 Apr 2004 Posts: 5 Location: Australia
|
Posted: Sat Apr 03, 2004 1:27 am |
Perfect
#VAR lastCommand {}
#ONINPUT {(%*)} {#var lastCommand %1}
#KEY DEC {@lastCommand}
This is the kind of thing i did so that the decimal key on the keypad sent the last command i typed to the mud.
Thanks Hibio and Vijilante. |
|
|
|
Feed_Error Newbie
Joined: 02 Apr 2004 Posts: 5 Location: Australia
|
Posted: Sun Apr 04, 2004 7:31 pm |
Turns out this is not so perfect.
Everything gets checked on oninout including macros (only want typed stuff to be on recall). also when you do command1;command2 only command2 gets added.
Pretty much want the !! functionality buy with everything typed into the input bar not just things >2 chars. Any more ideas? |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sun Apr 04, 2004 10:28 pm |
Try using %lastinput or %lastin2 with you trigger. Other Predefined Variables that may be of use are %lastcom, %lastcom2, %lastcom3, and %action. I am quite certain that all of these are affected by trigger, alias, macro, etc processing so best I can say is play around with it until it works consistently. %lastinput is likely to be the best bet.
|
|
|
|
Feed_Error Newbie
Joined: 02 Apr 2004 Posts: 5 Location: Australia
|
Posted: Mon Apr 05, 2004 12:04 am |
Nope these dont work.
%lastinput:
The trigger becomes the last input
%lastin2:
only works once then the trigger becomes the last input
Could not get %lastcom to work.
Also found a bug with !!. It puts the last input into the input bar even if you have clear input selected. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Apr 05, 2004 2:42 am |
quote: How do you make it so commands that are less than 3 characters long are added to the command history?
Give them 3-character aliases. |
|
|
|
|
|