Sign in to follow this  
Followers 0
2words4uready

Create its own type of file?

13 posts in this topic

Is it possible to have a compiled autoit script be able to interpret its own file?

example

Interpreter opens bla.inter


READ BEFORE POSTINGMy UDF'sMessagesYou say plz because its shorter than please. I say no because its shorter than yes.Join My Website

Share this post


Link to post
Share on other sites



Is it possible to have a compiled autoit script be able to interpret its own file?

example

Interpreter opens bla.inter

The answer is yes, you can define what program you associate with which program.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Yes you can create file types easily. They don't have to be registered with Windows to work. You just have to be able to open and process it.

Share this post


Link to post
Share on other sites

Yes you can create file types easily. They don't have to be registered with Windows to work. You just have to be able to open and process it.

The FAQ's that is pinned to the top has a good example if you want to register .'inter' files.

All the extension does in any program is just associates what it opens with. You can rename an au3 to a txt and its just text. All the au3 does it tells that file to open with AutoIt=)

Share this post


Link to post
Share on other sites

You can write binary strings to files and devise your own format easily. What you call a file doesn't matter to the OS, so long as it's a unique file type. Make sure you don't name it something that already exists on your system, to avoid conflicts.

You can also devise a text format and simply rename .txt files to .whateveryouwant.

All you have to do is specify the extension with your FileOpen, FileRead, and so on.

Share this post


Link to post
Share on other sites

Have you read the FAQ Q16 as suggested?

I get a missing picture symbol in the Help file under the Examples.

has nothing to do with what im asking


READ BEFORE POSTINGMy UDF'sMessagesYou say plz because its shorter than please. I say no because its shorter than yes.Join My Website

Share this post


Link to post
Share on other sites

I get a missing picture symbol in the Help file under the Examples.

has nothing to do with what im asking

Sorry i was looking at the wrong Faq

READ BEFORE POSTINGMy UDF'sMessagesYou say plz because its shorter than please. I say no because its shorter than yes.Join My Website

Share this post


Link to post
Share on other sites

Have you read the FAQ Q16 as suggested?

Yes but i get an Error

test.test is not a valid window 32 application


READ BEFORE POSTINGMy UDF'sMessagesYou say plz because its shorter than please. I say no because its shorter than yes.Join My Website

Share this post


Link to post
Share on other sites

Do you want the file to launch a program and have a custom file type, or do you want a program to read your custom file type? I think there are some complicated registry issues with getting a custom executable filetype, while reading your own format is very simple.

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

Then you have to do the appropriate setup in Windows. Read this for some more information. Especially note the "How to create file associations for unassociated file types" section.

Edited by RobSaunders

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0