My Hot Key alias for copying to clipboard

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Jul 21, 2012
32
0
#1
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