ID:860386
 
Applies to:
Status: Open

Issue hasn't been assigned a status value.
I'd like to see right-click context menus for adding new files.
That's actually quite simple to add. It's just a registry tweak, like the one I came up with for DMI thumbnails a while ago. This would be something the BYOND installer does, so if added, I would suggest that the right-click context menu -> New items be optional. This is one of those things that some people will love because of the ease of access, but others will hate because of the clutter it would make. Maybe there could be check boxes for each "New" context menu file type, in the BYOND installer. So for example, you could choose whether you want to be able to create new BYOND Map files, BYOND Icons etc., from the "New" context menu.

Here is the registry tweak that will add "New" context menu items for each of the relevent file extensions. Always make sure to backup your registry before making changes. Use this at your own risk!

To test this, open notepad and paste this code into it. Make sure each line looks the same after pasting! You may need to paste it into wordpad first, then copy to notepad, to make sure the lines get copied correctly. Then go to File -> Save As... Where it says "Save as type", change that to "All Files". Give it any name, like "Add Context Menu Items", but at the end, make sure you put the extension ".reg". Save it somewhere you can find it, and double click it. If it asks you for permission or if you would like to continue just click "Yes".

You will not see the changes immediately, so you will need to log off and back on to see the new right-click -> New items. I don't think you have to actually restart your computer, but you can if you want.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.dme\ShellNew]
"NullFile"=""

[HKEY_CLASSES_ROOT\.dm\ShellNew]
"NullFile"=""

[HKEY_CLASSES_ROOT\.dmm\ShellNew]
"NullFile"=""

[HKEY_CLASSES_ROOT\.dmi\ShellNew]
"NullFile"=""

[HKEY_CLASSES_ROOT\.dmf\ShellNew]
"NullFile"=""

[HKEY_CLASSES_ROOT\.dms\ShellNew]
"NullFile"=""


If you decide that you don't want all those items under "New" you can remove them by using this code, and following the same directions as above. Again, use at your own risk!

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\.dme\ShellNew]

[-HKEY_CLASSES_ROOT\.dm\ShellNew]

[-HKEY_CLASSES_ROOT\.dmm\ShellNew]

[-HKEY_CLASSES_ROOT\.dmi\ShellNew]

[-HKEY_CLASSES_ROOT\.dmf\ShellNew]

[-HKEY_CLASSES_ROOT\.dms\ShellNew]

Let me know if you get this to work! I'm guessing it works all the way back to at least Windows 2000, by the nature of the code, not that any significant number of people still use that OS or anything.

However, I am concerned as to how this can be done in the installer, without requiring a restart. Could it be as simple as restarting the process explorer.exe? I will have to test that.
The installer would have to kill and restart explorer.exe or a system restart.

I suppose that could be noted next to the check box.
I would prefer that the installer do it for you automatically, just so you don't have to go restarting your computer. It's always annoying when an installer forces you to do that, especially for such lite programs.

Also, .dmm and .dms should probably not be included, as BYOND Map files rely on compiled code, so they are basically broken by default, and script files don't open with Dream Maker by default. So, unless something is done to fix the default state of these files, they should probably not be included under the context menu.
I was under the assumption that the OP was referring to the file tree inside of Dream Maker, and not windows explorer. If so, I think that's been suggested somewhere before.

<edit>
Yes, it has been suggested before, by the OP himself:
http://www.byond.com/forum/?post=815126
In response to DarkCampainger (#4)
oops...
I think the point of the context menu is that it allows you to create a file within a specific folder directly.

Anyways, since Cloud has confirmed that this is a duplicate, please continue any discussion in the original thread:
http://www.byond.com/forum/?post=815126
Care to rename this thread for an explorer context menu? It might still be a useful idea.


Thanks!