
windows全局熱鍵
Have you ever copied something to the clipboard that you don’t want to leave there in case somebody else is going to use your computer? Sure, you can copy something else to the clipboard real quick, but can’t you just make a shortcut or hotkey to clear it?
您是否曾經將不想復制的東西復制到剪貼板上,以防其他人使用您的計算機? 當然,您可以將其他內容真正快速地復制到剪貼板上,但是您是否只能通過快捷方式或熱鍵來清除它呢?
And of course you can, with the built-in clip.exe utility in Windows 7 or Vista. It’s not really meant for clearing the clipboard, but with a little command line magic in a shortcut, we can make it do just that.
當然,您可以使用Windows 7或Vista中的內置clip.exe實用程序。 并不是真正要清除剪貼板,而是在快捷方式中添加了一點命令行魔術,我們可以做到這一點。
Note: This is also useful if you copied a very large amount of data to the clipboard and you don’t want it wasting memory anymore.
注意:如果您將大量數據復制到剪貼板并且不想再浪費內存,這也很有用。
Create a Shortcut Icon to Clear the Clipboard
創建快捷方式圖標以清除剪貼板
Right-click on the desktop or elsewhere, and choose New \ Shortcut from the menu.
右鍵單擊桌面或其他位置,然后從菜單中選擇“新建\快捷方式”。

Then in the shortcut location box, enter the following command:
然后在快捷方式位置框中,輸入以下命令:
cmd /c “echo off | clip”
cmd / c“回顯| 夾”

At this point you’ll have an icon that will immediately clear the clipboard… but we can tweak it a bit further.
此時,您將擁有一個圖標,該圖標將立即清除剪貼板……但是我們可以對其進行進一步的調整。

Right-click on the icon and choose Properties, and then change the Run drop-down to “Minimized” to make sure you don’t see the command prompt. You can also assign a shortcut key here.
右鍵單擊該圖標,然后選擇“屬性”,然后將“運行”下拉菜單更改為“最小化”,以確保看不到命令??提示符。 您也可以在此處分配快捷鍵。

If you click the Change Icon button and then browse down to this file, you can find a clipboard icon:
如果單擊“更改圖標”按鈕,然后向下瀏覽到此文件,則可以找到剪貼板圖標:
%SystemRoot%\system32\shell32.dll
%SystemRoot%\ system32 \ shell32.dll

Now we’ve got a nice-looking icon that will clear out the clipboard:
現在,我們有一個漂亮的圖標,它將清除剪貼板:

Note: If you are using Windows XP, you can download clip.exe from Microsoft. Just save the file in the Windows directory and the rest of the hack should work for you.
注意:如果使用Windows XP,則可以從Microsoft下載clip.exe 。 只需將文件保存在Windows目錄中,其余的hack就可以為您工作。
翻譯自: https://www.howtogeek.com/howto/windows-vista/create-a-shortcut-or-hotkey-to-clear-the-clipboard-in-windows-vista/
windows全局熱鍵