如何仅使用键盘将其粘贴到Windows CMD提示符中?


Answers:


10

它不是令人惊讶的用户友好的,但你可以贴ALT+ Spaceep

这里


6

这是在服务器故障上解决的:

我个人使用一些AutoHotkey脚本来重新映射某些键盘功能,对于我使用的控制台窗口(CMD):>

; 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 


0

Control和V,与其他OS一样:P

#IfWinActive, ahk_class ConsoleWindowClass
^v:: Send !{Space}ep
#IfWinActive

(是的,这只是使先前的答案自动化,但是使之自动化。Autohotkey!:))


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.