Jump to content


Photo

Registry File Extension Scripts (new Script)


  • This topic is locked This topic is locked
12 replies to this topic

#1 molloyboy08

molloyboy08

    pyr0t3chnic

  • New Member
  • 473 posts

Posted 08 April 2007 - 03:29 AM

Purpose: Customize your file extensions to fit your program
link: zip with .gml file and all this info in a .txt file
http://www.geocities...stryScripts.zip
If you download please comment whether its a criticism, praise, question, or wanting me to add a function, if you want to add one too go ahead, ill package it with them and put your name in the help.txt file if you want
Scripts:
reg_set_assoc(extension,association)
reg_get_assoc(extension)
reg_check_assoc(extension) new! checks to see how far assoc exists 0-extension doesnt exist, 1-extension exists, association doesn't,2-both exist
reg_set_open(association,exe)
reg_get_open(association)
reg_set_def(association,verb)
reg_get_def(association)
reg_set_icon(association,icon)
reg_get_icon(association)
reg_set_verb_name(association,verb,display name)
reg_get_verb_name(association,verb)
reg_set_verb_extended(association,verb)
reg_get_verb_extended(association,verb)
reg_set_verb_command(association,verb,exe,paramete
rs)
reg_get_verb_command(association,verb)
reg_add_verb(association,verb)
reg_set_assoc_ext(extension,association,exe,icon)
reg_set_verb_ext(association,verb,display name,exe,parameters,default?,extended?)
each script is commented about the arguments
reg_set_assoc_ext is reg_set_assoc,reg_set_open,reg_set_icon all in 1
reg_set_assoc_ext is reg_set_verb_name,reg_set_verb_command,reg_set_def
,reg_set_extended and sometimes reg_add_verb all in 1
the separate functions are for changing them after creation
vocabulary:
[file] association- files extension, ie .bmp, is grouped to a name, more than one extension can be grouped to a name. In this name is where properties are set
Due to a pm of someone who didnt understand it i have more info to give

its like an identifier for example for microsoft word some examples it made are
Word.Application
Word.Document.6
Word.Document.8
see how the first part is an identifier followed by a "." to make it more specific

extended- means it will only be shown if the user holds shift and right clicks on icon
default-this item will be bold on the right click, also double clicking activates it
verbs- when you right click on an icon, you get a context menu, this is the term associated with the action when you click on ie open, the verb open is called and does the command
Some System Verbs:
open-Opens the file or folder.
opennew-Opens the file or folder in a new window.
print-Prints the file.
explore-Opens Windows Explorer with the folder selected.
find-Opens the Windows Search dialog box with the folder set as the default search location.
openas-Opens the Open With dialog box.
properties-Opens the object's property sheet.
Its up to you to find out how to use them
Note: Gamemaker cannot delete registry keys or values so once you add a verb its there until the user deletes it, once you make a verb extended it will say extended edit: set the icon to nothing "" as the argument, to have windows to use a mini-version of your programs icon, the normal, as if it was set with open with
Disclaimer: I will not be held responsible for the actions of anyone that uses these scripts. Unless you definately know what you are doing, do not change anything about commercial extensions, just your own
no need to give credit if used

Mod edit: Closed for broken link

Edited by FredFredrickson, 21 October 2010 - 06:42 PM.

  • 0

#2 EDGE

EDGE

    GMC Member

  • New Member
  • 156 posts

Posted 09 April 2007 - 12:40 AM

Nice set of scripts. Save's lots of time learning about the registry to do certain tasks. The registry can be a useful tool to change the desktop, or icons of files, etc. Thanks for posting this. It could use a little more explanation of how to use it tho but otherwise it looks good.
  • 0

#3 molloyboy08

molloyboy08

    pyr0t3chnic

  • New Member
  • 473 posts

Posted 16 June 2007 - 12:52 AM

<update>
I have found an error in a script or too, and have slightly modified 3 more. I intend on adding more as i get more time especially more time to learn about the registry. My knowlegde is limited and i do not want to risk doing any [more] damage to my computer seeing how it is 120/140 gigs full. (i know lmao). Feel free to give suggestions about anything for me to add to them. I will try to learn it if i dont already, and add it in. Of course if you have [good] info about a topic to add thats even better

edit: i have not updated this new set yet
things i plan to add:
desktop background options ie retrieve pict and other stuff even though im sure this is around the gmc in numerous numbers

Edited by molloyboy08, 16 June 2007 - 12:54 AM.

  • 0

#4 softhunterdevil

softhunterdevil

    LazyBoy

  • GMC Member
  • 276 posts

Posted 14 October 2007 - 04:44 PM

Very good scripts ... Checking out soon.
  • 0

#5 darktemp7

darktemp7

    GMC Member

  • New Member
  • 148 posts

Posted 23 August 2008 - 09:51 PM

I use Vista, and these don't seem to work. I tried associating icons and default open programs to a custom file extension. I executed the reg_set scripts, then I used the reg_get scripts to see if they worked. They returned that they had worked. However, the files didn't change icons or open in the default program that I had set.
  • 0

#6 molloyboy08

molloyboy08

    pyr0t3chnic

  • New Member
  • 473 posts

Posted 25 August 2008 - 03:54 AM

It should work. Send me a message with the code you are using and I'll see if it is right etc. Also, when modifying the registry you might need to reload the folder or reboot the computer in some instances...

Just incase anyone was wondering I still support these scripts and will help with using them. If many people are interested in it I might add more etc.
  • 0

#7 Colton530

Colton530

    GMC Member

  • GMC Member
  • 415 posts

Posted 28 September 2009 - 06:58 AM

I know this topic is old. But can someone make an example out of this? I got so confused. When I see examples it helps me learn it a whole lot better.
  • 0

#8 miner1666

miner1666

    GMC Member

  • New Member
  • 108 posts

Posted 03 June 2010 - 01:34 PM

broken link...
does anyone have the scripts?
  • 0

#9 MasterMind007

MasterMind007

    MasterMind Prod.

  • GMC Member
  • 543 posts

Posted 26 August 2010 - 09:40 AM

The link is broken.
  • 0

#10 Drara

Drara

    GMC Member

  • GMC Member
  • 294 posts

Posted 01 September 2010 - 08:59 AM

New Link please, I'd like to use this.
  • 0

#11 MasterMind007

MasterMind007

    MasterMind Prod.

  • GMC Member
  • 543 posts

Posted 01 September 2010 - 09:43 AM

Broken link.
  • 0

#12 miner1666

miner1666

    GMC Member

  • New Member
  • 108 posts

Posted 01 September 2010 - 08:16 PM

i don't think anyone is going to answer this, can't this topic be marked for the broken link?...
  • 0

#13 johnbot2010

johnbot2010

    GMC Member

  • New Member
  • 141 posts

Posted 03 September 2010 - 05:09 PM

Guys, this topic is pretty dead, It was created three years ago (and the last non-request post was 2 years ago).
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users