Yes.. but awkward. Link
alt + Space, e, k <-- for copy and
alt + Space, e, p <-- for paste.
ID : 10147
viewed : 50
Tags : windowskeyboard-shortcutswindows
96
Yes.. but awkward. Link
alt + Space, e, k <-- for copy and
alt + Space, e, p <-- for paste.
80
I personally use a little AutoHotkey script to remap certain keyboard functions, for the console window (CMD) I use:
; Redefine only when the active window is a console window #IfWinActive ahk_class ConsoleWindowClass ; Close Command Window with Ctrl+w $^w:: WinGetTitle sTitle If (InStr(sTitle, "-")=0) { Send EXIT{Enter} } else { Send ^w } return ; Ctrl+up / Down to scroll command window back and forward ^Up:: Send {WheelUp} return ^Down:: Send {WheelDown} return ; Paste in command window ^V:: ; Spanish menu (Editar->Pegar, I suppose English version is the same, Edit->Paste) Send !{Space}ep return #IfWinActive
74
Not really programming related, but I found this on Google, there is not a direct keyboard shortcut, but makes it a little quicker.
63
Thanks Pablo, just what I was looking for! However, if I can take the liberty of improving your script slightly, I suggest replacing your ^V macro with the following:
; Use backslash instead of backtick (yes, I am a C++ programmer). #EscapeChar \ ; Paste in command window. ^V:: StringReplace clipboard2, clipboard, \r\n, \n, All SendInput {Raw}%clipboard2% return
The advantage of using SendInput is that
Note, it's important to include the "{Raw}" in the SendInput command, in case the clipboard happens to contain "!", "+", "^" or "#".
Note, it uses StringReplace to remove excess Windows carriage return characters. Thanks hugov for that suggestion!
59
There is also a great open source tool called clink, which extends cmd by many features. One of them is being able to use ctrl+v to insert text.