Jump to content
Sign in to follow this  
Joscpe

SaveDialog Filters

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...