Jump to content
Sign in to follow this  
Joscpe

SaveDialog Filters

Recommended Posts

Joscpe

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

Share this post


Link to post
Share on other sites
BrettF
BrettF

Share this post


Link to post
Share on other sites
Joscpe

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

Share this post


Link to post
Share on other sites
James

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

Share this post


Link to post
Share on other sites
WeMartiansAreFriendly

If Not StringInStr($FileName, $extension, 0) Then
     $FileName = $FileName & "." & $extension
EndIf

:P 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()

Share this post


Link to post
Share on other sites
Joscpe

You would still need to figure out which Filter they chose...

I don't think its possible :P:D


-Joscpe

Share this post


Link to post
Share on other sites
Joscpe

I guess I could always make my own save dialog, but it would look pretty crapy... :)


-Joscpe

Share this post


Link to post
Share on other sites
Joscpe

So, is there no way to do it?? :)

Should i just give up?


-Joscpe

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  

×