Hi,
I'd like to set my command text so that the text is always the last command I typed, and it's all highlighted (so if I type a new command it overwrites the last one).
I tried this:
Alias: ^(.*?)%
Send to: Script
Script:
SelectCommand()
SetCommand(%1)
SelectCommand()
Which generates this:
[string "Alias: "]:2: bad argument #1 to 'SetCommand' (string expected, got nil)
stack traceback:
[C]: in function 'SetCommand'
[string "Alias: "]:2: in main chunk
Also there should be a flag which sends the command on for execution...
Any pointers appreciated!
Thanks,
Woody
I'd like to set my command text so that the text is always the last command I typed, and it's all highlighted (so if I type a new command it overwrites the last one).
I tried this:
Alias: ^(.*?)%
Send to: Script
Script:
SelectCommand()
SetCommand(%1)
SelectCommand()
Which generates this:
[string "Alias: "]:2: bad argument #1 to 'SetCommand' (string expected, got nil)
stack traceback:
[C]: in function 'SetCommand'
[string "Alias: "]:2: in main chunk
Also there should be a flag which sends the command on for execution...
Any pointers appreciated!
Thanks,
Woody