1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

My Hot Key alias for copying to clipboard

Discussion in 'T&T - Aliases' started by Gilad Raz, Jul 31, 2012.

  1. Gilad Raz

    Joined:
    Jul 21, 2012
    Messages:
    32
    Likes Received:
    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
     

Share This Page