Subscribe to How-To Geek Mag-subscribe sa Paano-Upang Geek

Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Create a Context Menu Item to Copy a Text File To the Clipboard in Windows 7 / Vista / XP Gumawa ng isang Context Menu Item Kopyahin sa isang Text File Upang ang Clipboard sa Windows 7 / Vista / XP

If you are the type of person that likes to keep a lot of information stored in text-format files on your drive, you've probably encountered a scenario where you want to copy that information to the clipboard… so you open the file in notepad, select all, then copy to the clipboard. Kung kayo ay ang uri ng tao na kagustuhan upang mapanatili ang isang pulutong ng mga impormasyon na naka-imbak sa mga text-format ng mga file sa iyong drive, malamang na nakaranas ka na ng isang sitwasyon na kung saan nais mong kopyahin ang impormasyon na iyon sa clipboard ... kaya mong buksan ang file sa Notepad , piliin ang lahat, at kopyahin sa clipboard. What if you could do it with a simple context menu item instead? Paano kung ang maaari mong gawin ito sa isang simpleng bagay na context menu sa halip na?

Using a little registry hacking and the clip.exe utility built into Windows 7 and Vista, we can do just that, and we can even hide it behind the Shift + Right-Click menu so that it won't waste space on the menu unless you hold down the shift key. Gamit ang isang maliit na tuyong pagpapatala at ang clip.exe utility na nakapaloob sa Windows 7 at Vista, ang magagawa natin na lamang, at maaari namin kahit na itago ang mga ito sa likod ng Shift + right-click menu upang hindi na ito ng basura sa space sa menu maliban na lamang kung hold mo down ang shift key.

Using the Copy to Clipboard Hack Gamit ang Kopyahin sa Clipboard hack

Simply hold down the Shift key and right-click on a text file, and you'll see a new item for “Copy to Clipboard”: I-hold down ang Shift key at i-right click sa isang file na teksto, at makakakita ka ng isang bagong aytem para sa "Kopyahin sa Clipboard":

image

Now you'll have the information on the clipboard for easy pasting into whatever application you'd like: Ngayon ikaw ay may impormasyon tungkol sa clipboard para sa madaling i-dikit sa kahit anong application na gusto mo:

image

Note: If you are using Windows XP, you can Paalala: Kung ikaw ay gumagamit ng Windows XP, maaari mong download clip.exe from Microsoft clip.exe i-download mula sa Microsoft . . Just save the file in the Windows directory and the rest of the hack should work for you. Basta i-save ang file sa direktoryo ng Windows at ang magpahinga ng ang hack ay dapat na gumana para sa inyo.

Manual Registry Hack (for .txt files) Manual Registry hack (para sa mga. Txt files)

Open up regedit.exe through the start menu search or run box, and then browse down to the following key: Buksan up regedit.exe sa pamamagitan ng paghahanap magsimula menu o magpatakbo ng kahon, at pagkatapos ay i-browse down sa mga sumusunod na susi:

HKEY_CLASSES_ROOT\txtfile\shell HKEY_CLASSES_ROOT \ txtfile \ shell

image

Underneath each file type in the registry (for instance txtfile), there is a shell key with a list of actions under it. Sa ilalim ng bawat uri ng file sa registry (halimbawa txtfile), may isang hukay na susi sa isang listahan ng mga aksyon sa ilalim nito. We'll create a new key called “copytoclip”, and then a key under it called “command”. Kami ay lumikha ng isang bagong key na tinatawag na "copytoclip", at pagkatapos ay isang susi ito sa ilalim ng tinatawag na "command". Set the default value of “copytoclip” to something useful like “Copy Contents to Clipboard”, and then set the default value of “command” to the following: Itakda ang default na halaga ng "copytoclip" sa isang bagay na kapaki-pakinabang tulad ng "Kopyahin ang nilalaman sa Clipboard", at pagkatapos ay itakda ang default na halaga ng "command" para sa mga sumusunod:

cmd /c clip < “%1″ cmd / c clip < "% 1"

What we're doing is running a command prompt, and then piping the file into the clip.exe utility. Kung ano ang aming ginagawa ay tumatakbo sa isang command prompt, at pagkatapos ay mainit na mainit ang file sa clip.exe utility. You could do the same thing from the command prompt, or in a script. Maaari mong gawin ang parehong bagay mula sa command prompt, o sa isang script.

You could duplicate this same tweak for other file types, such as html or code files, by finding their key in the registry and adding the same menu items. Maaari mo na ito ang mga dobleng parehong sabunot para sa iba pang mga uri ng file, tulad ng html o code ng mga file, sa pamamagitan ng paghahanap ng kanilang mga key sa registry at pagdadagdag ng parehong item menu.

Downloadable Registry Hack Downloadable Registry hack

Simply download, extract, and double-click on CopyContentsToClipboardTXT.reg to the clipboard. I-download, katas, at i-double click sa CopyContentsToClipboardTXT.reg sa clipboard. You can remove the hacks with the RemoveCopyContentsToClipboard.reg file. Maaari mong alisin ang mga hacks kasama ang file RemoveCopyContentsToClipboard.reg.

Just remember to hold down the shift key while right-clicking on a text file. Isaalala na hold down ang shift key habang-right click sa isang file na teksto.

Download CopyContentsToClipboardTXT Registry Hack I-download ang Registry CopyContentsToClipboardTXT hack

This article was originally written on 06/17/08 Tagged with: Ang artikulong ito ay orihinal na isinulat sa 06/17/08 Tagged with: Desktop Customization Desktop Customization , , Shortcuts and Hotkeys Shortcut at Hotkeys , , Windows 7 Windows 7 , , Windows 7 Tips Windows 7 Tips , , Windows Vista Windows Vista

Daily Email Updates Araw-araw na Updates Email

You can get our how-to articles in your inbox each day for free. Maaari kang makakuha ng aming kung-paano na mga artikulo sa iyong inbox sa bawat araw para sa libre. Just enter your name and email below: Ilagay lamang ang inyong pangalan at email sa ibaba:


Name: Pangalan:
Email: Email:

Comments (2) Comments (2)

  1. bountygiver bountygiver

    It doesn't hidden! Hindi nito nakatago!
    I can even see it without holding the SHIFT key. Ako kahit makita ito nang walang hawak na ang Shift key.

  2. bountygiver bountygiver

    i found the solution! ako nahanap ang solusyon!

    you hav to download the registry hack to hide it! hav mong i-download ang registry hack upang itago ang mga ito!

    or add an empty string value named “Extended” in the “copytoclip” Key o magdagdag ng isang walang laman na string na halaga na pinangalanang "Extended" sa "copytoclip" Key


Leave a Comment Iwanan ng isang Puna




Leave your Iwanan ang iyong mga friendly friendly comment here. puna dito.

If you have a computer help question, Kung ikaw ay may isang computer ng tulong tanong, click here to leave it on the forums i-click dito upang mag-iwan ito sa forums instead. sa halip ng.

Note: Your comment may not show up immediately on the site. Tandaan: ang iyong puna ay maaaring hindi magpapakita agad sa site.

Our Friends Ang aming mga Friends
Getting Started Pagsisimula


About How-To Geek Tungkol sa Paano-Upang Geek
What Is That Process? Ano ba ang Proseso Iyon?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. All Rights Reserved.