|
Post by therealmethuselah on Nov 20, 2005 12:10:49 GMT -5
A lot of people have asked me how I got my own Icon and Application associations for my newest RPG, Plains of Chaos. Here is the simple script I use. { // Open the registry and write the file and icon associations // Set the registry to HKEY_CLASSES_ROOT registry_set_root(2); registry_write_string_ext(argument0, '', argument1); registry_write_string_ext(argument1, '', argument1); registry_write_string_ext(argument1 + '\DefaultIcon\', '', working_directory + '\' + argument2 + ', 0'); registry_write_string_ext(argument1 + '\shell\open\command\', '', argument3 + ' "%1"' + ' "' + argument4 + '"'); } An example would be: // Association My File Type with an icon and NotepadfileAssociate('.abc', 'My File Type', 'abc.ico', 'C:\System32\notepad.exe', ''); You can see it in action in my gameInitialize(); script here: Click the thumbnail to enlage
|
|
|
Post by shad0w on Dec 3, 2005 21:57:28 GMT -5
Nice, I might use this in the future some time.
|
|