nht3004 Posted June 13, 2009 Posted June 13, 2009 I've seen many AutoIT project that create its own file type. So is there any way to make your file type use your program to read? For example if you have a .PSD file, windows will open you Adobe Photoshop I thought I maybe something in system32.dll but I don't know what is it Thanks in advance for(loop=0; loop<infinity; loop++) { alert('I love you'); }
Richard Robertson Posted June 13, 2009 Posted June 13, 2009 What you are referring to is a file association. In reality, any file extension can be opened in any program. What you want is for your custom extension to open with your script, there are plenty of examples of this.Oh look, I did the search for you. http://www.autoitscript.com/forum/index.php?showtopic=17894
nht3004 Posted June 13, 2009 Author Posted June 13, 2009 What you are referring to is a file association. In reality, any file extension can be opened in any program. What you want is for your custom extension to open with your script, there are plenty of examples of this.Oh look, I did the search for you. http://www.autoitscript.com/forum/index.php?showtopic=17894Thanks, it works, but could you explain me what is the red word stands for?fDefineOpenAssociation("csv", "CSV Class", "Data base file splited by comma ", @SystemDir & "\SHELL32.dll,1", "notepad.exe 1%") for(loop=0; loop<infinity; loop++) { alert('I love you'); }
herewasplato Posted June 13, 2009 Posted June 13, 2009 Thanks, it works, but could you explain me what is the red word stands for?fDefineOpenAssociation("csv", "CSV Class", "Data base file splited by comma ", @SystemDir & "\SHELL32.dll,1", "notepad.exe 1%")It should be written:... "notepad.exe %1")And it is the operating system variable for passing the file of interest to the application.Also, ""Data base file splited by comma ""should be "Data base file split by comma "or better still"Data base file - comma delimited" [size="1"][font="Arial"].[u].[/u][/font][/size]
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