Jump to content

FileSaveDialog() and selected filter.


smashly
 Share

Recommended Posts

Hi,

FileSaveDialog() doesn't return an extension of the filter used.

So for example I offer a user to save an image as the format they want.

I set the filter param with "Bitmap (*.bmp)|GIF (*.gif)|JPEG (*.jpg)|PNG (*.png)"

The user selects from the "Save as type:" *.png and types a file name with no extension to save.

But FileSaveDialog() only returns the path\filename but without an extension or filter chosen.

So I have no way of knowing what filter the user selected..

Makes me wonder why there's even a "Save as type:" filter choice in the first place.

Am I missing something?

TYIA

Edited by smashly
Link to comment
Share on other sites

Hi,

Your wrong... my windows notepad saves an extension even when I do not type one in.

But that's not the point.

I don't care about the extension being added, it's that I don't know the filter the user selected.

The point is AutoIt's built in FileSaveDialog() pretty well useless under certain circumstances.

If it doesn't return a Filter or Add an extension when a filter is chosen then what's the point of setting "Save as type:" filters

Cheers

Edited by smashly
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...