Welcome!

By registering with us, you'll be able to discuss, share and exchange private messages with other members of our community.

SignUp Now!

My Hot Key alias for copying to clipboard

Jul
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
 
Back
Top