My Hot Key alias for copying to clipboard

Jul 21, 2012
32
0
Just put together 2 handy hotkey aliases for copying the current command line or the last parameter on the command line to the clipboard:

Code:
@@Alt-M @history >! %temp\his$$$^echo %@clipw[%@word[-0,%@line[%temp\his$$$,%@lines[%temp\his$$$]]]] >& nul^keystack Up
 
@@Alt-N @history >! %temp\his$$$^echo %@clipw[%@line[%temp\his$$$,%@lines[%temp\his$$$]]] >& nul^keystack Up

Would have been nice to be able to use EXECSTR[-1,history] but for some reason it clears the screen and never returns.

Cheers,
Gilad