2words4uready Posted August 4, 2008 Share Posted August 4, 2008 Is it possible to have a compiled autoit script be able to interpret its own file? example Interpreter opens bla.inter Link to comment Share on other sites More sharing options...
Developers Jos Posted August 4, 2008 Developers Share Posted August 4, 2008 Is it possible to have a compiled autoit script be able to interpret its own file?exampleInterpreter opens bla.interThe answer is yes, you can define what program you associate with which program.Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Richard Robertson Posted August 4, 2008 Share Posted August 4, 2008 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. Link to comment Share on other sites More sharing options...
Szhlopp Posted August 4, 2008 Share Posted August 4, 2008 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=) RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+' Link to comment Share on other sites More sharing options...
JRowe Posted August 4, 2008 Share Posted August 4, 2008 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. [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center] Link to comment Share on other sites More sharing options...
2words4uready Posted August 4, 2008 Author Share Posted August 4, 2008 How would i make it interpret the file?? Link to comment Share on other sites More sharing options...
Developers Jos Posted August 4, 2008 Developers Share Posted August 4, 2008 How would i make it interpret the file??Have you read the FAQ Q16 as suggested? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
2words4uready Posted August 4, 2008 Author Share Posted August 4, 2008 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 Link to comment Share on other sites More sharing options...
2words4uready Posted August 4, 2008 Author Share Posted August 4, 2008 I get a missing picture symbol in the Help file under the Examples.has nothing to do with what im askingSorry i was looking at the wrong Faq Link to comment Share on other sites More sharing options...
2words4uready Posted August 4, 2008 Author Share Posted August 4, 2008 Have you read the FAQ Q16 as suggested?Yes but i get an Errortest.test is not a valid window 32 application Link to comment Share on other sites More sharing options...
JRowe Posted August 6, 2008 Share Posted August 6, 2008 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. [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center] Link to comment Share on other sites More sharing options...
2words4uready Posted August 14, 2008 Author Share Posted August 14, 2008 I want my program to launch this file. Link to comment Share on other sites More sharing options...
therks Posted August 14, 2008 Share Posted August 14, 2008 (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 August 14, 2008 by RobSaunders My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now