Many network engineers have enough with the “Ctr + C” combo in cisco command prompt.

You have to go back to the configuration level after you issue a command like “do sh xxxx” and copy something.

In MacOS, the Command + C works just fine!

Today, I will share some little trick for Engineers who works in windows environment on daily basis.

 

Step 1. Download the autohotkey from https://www.autohotkey.com/

Step 2. Run it , right click and click “edit this script”

Step 3, in the new notepad editor, paste below script to give Alt+s the ability to copy the selected text. and save it:

!s:: ;Alt+s to copy
    Clip0 = %ClipBoardAll%
    ClipBoard =
    StringRight x,A_ThisHotKey,1 ; C or X
    Send ^%x% ; For best compatibility: SendPlay
    ClipWait 2 ; Wait for text, up to 2s
    If ErrorLevel
        ClipBoard = %Clip0% ; Restore original ClipBoard
    Else
        ClipBoard = %ClipBoard% ; Convert to text
    VarSetCapacity(Clip0, 0) 
return

Step 4. right click Autohotkey and click “reload this script”

 

Now enjoy!