Warning: Registry changes can cause your system to no longer work properly if done incorrectly. You should not make a habit of accepting scripts such as these from strangers, so I suggest you look over it and know what you're adding to your registry. All I can give is my personal assurance that I'm not attempting to cause any harm to your system.
Edit: Knocked my forums offline, so I'll quote my post here.
This is a quick and easy way to add a protocol handler for armagetronad links. What this means is that when you use server browsers, such as the one hosted here on Lightron, links starting with "armagetronad://" can open your client and connect you directly to the server you've chosen.
To accomplish this, simply copy the following script into Notepad. Replace the file path to Armagetronad.exe with your own, noting that the path is escaped. This means that any slashes "\" will need escaped with an extra slash, causing them to become "\\". Save this file with any filename you like, but be sure to give it a ".reg" extension. Where your file may normally be "file.txt", it needs to be saved as "file.reg". Finally, double click the file and allow it to run as admin, and you're done!
When you use a browser such as Google Chrome, you may be asked to allow the link to open an external program. You can usually check the box to remember the option, then click allow and it will no longer require your permission.
Only replace piece of the script: \\armagetronad\\Armagetronad.exe
Code: Select all
REGEDIT4 [HKEY_CLASSES_ROOT\armagetronad] @="URL:armagetronad Protocol" "URL Protocol"="" [HKEY_CLASSES_ROOT\armagetronad\shell] [HKEY_CLASSES_ROOT\armagetronad\shell\open] [HKEY_CLASSES_ROOT\armagetronad\shell\open\command] @="\"D:\\armagetronad\\Armagetronad.exe\" \"--connect\" %1"