Tuesday, August 7, 2007

How Much Do Braces Cost In Victoria?

How to add context menus

How to add context menus


In this tutorial show you how to add extra commands to give
right click on the files, editing the Windows registry.


First open regedit, Start->; Run-> regedit (or the combination of Windows key + r
)



is stored in HKEY_CLASSES_ROOT information extensions, where there is
modify values, so open it.


It stores all the extensions you have used Windows, to add or modify commands
programs that are open
extensions must understand that here the keys are divided into 2 parts: the extension and MIME type
either to a modified example of the extensions. bat under a batch programs
bath. First we


extension. "Bat" and see
corresponds to MIME:




Well we saw it uses MIME to the configuration of the "bat", now look below
MIME, is "batfile"



DefaultIcon is defined in the icon that will have the extension (you can change the icon by changing its route
) shell is what interests us because it is stored in the program
with opening the extension and its context menus, modify the key
shell:



Now we right click on shell and we add key
you put the key name (The name you put will appear as
menu) and then create a new key inside the shell created under the name
command ("means?" xD), bone in the picture above,
made a name key
SciTEdit inside SciTEdit then made another entry with the command name
, we command inside double-click on the entry
"default" and put the path of the program for the SciTEdit menu,
the "% 1" is a variable that represents the name of the file,
means to execute the command as follows: " D: \\ ruby \u200b\u200b\\ scite \\ SciTE.exe "
"nombredelbat" if my bat is called "chin.bat" then execute the command " D: \\ ruby \u200b\u200b\\ scite \\ SciTE.exe "
" C: \\ chin.bat" would be the same if ejecutramos "notepad" " C: \\ chin.bat "
(assuming chin.bat is in C: \\) in this case chin.bat
be opened with Notepad. The key to open, edit and print are predefined by the system, edit
is Edit, open is Open and print it print, open to change by changing the program responsible for loading
that extension.



Edit Icon


To change the icon you must change the key value
DefautIcon, the system default is "% SystemRoot% \\ System32 \\ shell32.dll, -153"
where "% SystemRoot% is a variable that equals" C: \\ Windows "
or rather equivalent to the Windows directory, and" shell32.dll, -153 "
means that the icon is indexed the file "shell32.dll", you can put your own icon
changing the route (I suggest keeping the existing
a text file if you want to return to the previous one), for example, " C: \\ bat.ico "
for the icon change to take effect you must restart.

0 comments:

Post a Comment