Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 9:17 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: creating my own extension
PostPosted: May 15th, 2010, 7:22 pm 
Offline

Joined: April 11th, 2010, 9:57 am
Posts: 18
Location: Amsterdam, The Netherlands
Opus: 7
OS: Windows 7
System: MacBook Pro with Parralels and bootcamp running the windows version
Hi to all of you,

I would like to make my program as pro as possible and therefor i choos my own extension for the files the user can save and load.
i checked if it is already in use, but couldn't find any so i like to use it.
Saving and openeing a textfile with my own extension (.uva = Universiteit van Amsterdam translated: University of Amsterdam)
But to make it complete i like to add my own icon to the filetype.
Who can help me, it's the last part of my project and it would be very nice if it's complete when i finish this project.

Kind Regards from Amsterdam,


Linda


For this message danklof has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: creating my own extension
PostPosted: May 16th, 2010, 8:59 am 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
yes, using the file script functions, you can create a file of any extension such as UVA,


creating an icon....if you mean an icon for the *.UVA extension, this can be done in windows, under file explorer, if you select TOOLS, then FOLDER OPTIONS, then FILE TYPES, then select NEW to register the new UVA extension. Once it is registered, select the UVA file (in FILE TYPES) and select ADVANCED, you then have an option to select an Icon for that file type.

If you mean an icon for your published application, this is done under the publish options.

If you need help with the file script functions, just ask.

Sandy

_________________
Whoever designed this, never actually used it!


For this message sandyn has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: creating my own extension
PostPosted: May 16th, 2010, 2:13 pm 
Offline

Joined: April 11th, 2010, 9:57 am
Posts: 18
Location: Amsterdam, The Netherlands
Opus: 7
OS: Windows 7
System: MacBook Pro with Parralels and bootcamp running the windows version
Hi Sandy,

Thanks for your reaction.
What i mean is that the file has the .UVA icon. The other option i already us when i publish my program.
But is there a script that sets the steps to register so the file have my UVA icon.
I hope you can help me.

Kind Regards from Amsterdam,

Linda


For this message danklof has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: creating my own extension
PostPosted: May 21st, 2010, 12:04 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
Hi Linda,
I'm still not 100% sure of what you are trying to do.
I think you are saying that you already have the *.UVA file type from Opus and you want to get Opus to register your icon to the UVA file extension?

Perhaps some third party installers can register the file type and Icons? I haven't used any, so I am not sure.
Opus can write to the registry, but only to the SOFTWARE sub-key, but I think the icon would need to be registered somewhere else, but that would be worth investigating. According to some stuff I have seen, windows icons, for example, are registered "HKEY_LOCAL_MACHINE\ Software\ Microsoft\ Windows\ CurrentVersion\ Explorer\ Shell Icons" , so if that's where it's done, then Opus could do it.

The key to the problem is finding what needs to written to the registry and where in the registry to write it.

There is lots of stuff on the web, so you could see if you can do it manually first, but Opus would only be able to do it if the information is in written to a Software subkey.

Another possibility is to get someone to do a chunk of C++ or C#, create an EXE and run that from Opus and pass in the parameters from a Launch File action??


Sandy

_________________
Whoever designed this, never actually used it!


For this message sandyn has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: creating my own extension
PostPosted: May 21st, 2010, 1:27 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Sandy's right on all counts. Official installers have the ability to register file icon types and that this is a registry issue. I've only ever had to do this once and it was a few years ago and I opted for the adding the registry information manually using the installer but I recall seeing a wizard option the other day. I'll check it out and see if it works and post back.

I believe there are two dos tools as well called ftype and assoc that are also worth looking at.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: creating my own extension
PostPosted: May 23rd, 2010, 7:28 pm 
Offline

Joined: April 11th, 2010, 9:57 am
Posts: 18
Location: Amsterdam, The Netherlands
Opus: 7
OS: Windows 7
System: MacBook Pro with Parralels and bootcamp running the windows version
Hello
I am very curious if there will be an answer. It should look so much more professional.
Quote:
I'm still not 100% sure of what you are trying to do

What i like to do is to add my own icon to my own extension so that you can see in the map that the file belongs to the UVA program.

I hope you can help me.


Linda


For this message danklof has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: creating my own extension
PostPosted: May 24th, 2010, 3:30 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
Hi Linda,
OK, so it's more than just doing a file association, you need to add the icon and register it as well. Opus can not do this on its own.

Will you will be distributing your application and icon to other users? In which case a third party installer may be the best option, because it's done upfront. If you have a dos utility which is run from within Opus and it's going to edit the registry, it may be seen by virus checkers as malicious?, but not sure.
There is another possible option. It is a program called Autoit. http://www.autoitscript.com/autoit3/index.shtml
Mack will be able to confirm if this may be able to do what you want.

If you just want to do it on your own PC, then it's easier doing it manually

Sandy

_________________
Whoever designed this, never actually used it!


For this message sandyn has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 44 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group