Joscpe Posted January 8, 2007 Share Posted January 8, 2007 I have A FileSaveDialog() with the filters, Text(*.txt), Ini(*.ini), HTML(*.htm) and All(*.*). How can I get it to add the filter on the end of the file when they press Save so they dont have to type it in? -Joscpe Link to comment Share on other sites More sharing options...
BrettF Posted January 8, 2007 Share Posted January 8, 2007 Dose This Help? FileSaveDialog("save", @ScriptDir, "Text Files (*.txt) |Ini (*.ini) |HTML (*.htm) |All(*.*)") All you have to do is seperate the filetypes with | Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
BrettF Posted January 8, 2007 Share Posted January 8, 2007 Hang on... i now know what you mean... Um isnt there a setting under folder options?? Im not sure. Could see if you could tie that in... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Joscpe Posted January 8, 2007 Author Share Posted January 8, 2007 Dose This Help? FileSaveDialog("save", @ScriptDir, "Text Files (*.txt) |Ini (*.ini) |HTML (*.htm) |All(*.*)") All you have to do is seperate the filetypes with | I already have that part, I just want it to add the extention to the end of the file automaticaly for them. -Joscpe Link to comment Share on other sites More sharing options...
James Posted January 8, 2007 Share Posted January 8, 2007 I know what you mean. You have to add the *.txt extension yourself, dont you? I have that same problem in BetaPad, I'm not sure how to fix it though, so this would be useful to me aswell. Secure Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
magician13134 Posted January 9, 2007 Share Posted January 9, 2007 If Not StringInStr($FileName, $extension, 0) Then $FileName = $FileName & "." & $extension EndIf Like that? Visit Magic Soft Inc. for some of my software Link to comment Share on other sites More sharing options...
WeMartiansAreFriendly Posted January 9, 2007 Share Posted January 9, 2007 If Not StringInStr($FileName, $extension, 0) Then $FileName = $FileName & "." & $extension EndIf Like that? If Not StringInStr($FileName, $extension, 0, -1) Then $FileName = $FileName & "." & $extension EndIf Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet() Link to comment Share on other sites More sharing options...
Joscpe Posted January 9, 2007 Author Share Posted January 9, 2007 You would still need to figure out which Filter they chose... I don't think its possible -Joscpe Link to comment Share on other sites More sharing options...
James Posted January 9, 2007 Share Posted January 9, 2007 That way works, but you need to find the filter.. Hmm.. Grrr... Secure Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
magician13134 Posted January 9, 2007 Share Posted January 9, 2007 Ok, I see. I'll work on it... Visit Magic Soft Inc. for some of my software Link to comment Share on other sites More sharing options...
James Posted January 9, 2007 Share Posted January 9, 2007 I don't think it can be done without a UDF. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Joscpe Posted January 10, 2007 Author Share Posted January 10, 2007 I guess I could always make my own save dialog, but it would look pretty crapy... -Joscpe Link to comment Share on other sites More sharing options...
James Posted January 10, 2007 Share Posted January 10, 2007 Like a popup GUI. I started making it in a GUI but I though that there must be another way of making it, I just dont know how. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Joscpe Posted January 12, 2007 Author Share Posted January 12, 2007 So, is there no way to do it?? Should i just give up? -Joscpe Link to comment Share on other sites More sharing options...
James Posted January 12, 2007 Share Posted January 12, 2007 Look for a UDF, there must be one. Secure Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ 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