Ctrl+V in cmd

Ctrl+V in cmd

http://blog.tremblay.pro/2014/04/ctrlv-in-cmd.html

 

Ctrl+V in cmd

01 Apr 2014
I've been using this for a while in fact but thought it was useful enough to be told.

A really annoying thing on Windows is that you can't Ctrl+V in a cmd. You can anywhere else but not there.

A nice piece of software named AutoHotkey can solve this. It allows you to script (in a strange language sadly) hot keys anywhere in Windows.

For Ctrl+V, the following script does the trick:

#IfWinActive ahk_class ConsoleWindowClass
^V::
SendInput {Raw}%clipboard%
return
#IfWinActive

UPDATE: In fact SendIput has encoding issue. So I'm now using Send !{Space}ep which simulate an access to the system menu and then select the paste by typing 'e' and 'p'. Not that is works in English. You might have to change the letters to fit your OS language.
 
 
posted @ 2020-04-05 13:48  zxyblog  阅读(213)  评论(0编辑  收藏  举报