Jump to content
Sign in to follow this  
Josbe

A Doubt For Fileopendialog()

Recommended Posts

Josbe

Someone help me, please. :evil:

I have a doubt, respect to FileOpenDialog() / FileSaveDialog(),

How is the syntax for show more extensions? :angry:

eg.: Text files (*.txt), All files (*.*)

I tested with "@LF" and "\n", but not appears. :lmao:

Really this isn't documented.(if there any way) :whistle:

B)

Share this post


Link to post
Share on other sites
scriptkitty

Do you mean multiple types, liek choose an image?

$test=FileOpenDialog( "Choose a file.", "c:\", "My Images (*.jpg;*.bmp)", 1 + 4 )

Or want more file types?

$test=FileOpenDialog( "Choose a file.", "c:\", "My Files (*.au3;*.ini;*.zip;*.sys)")
Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites
CyberSlug

Maybe josbe means multiple separate filters?

Screenshot example

Posted Image

1) I don't think AutoIt (yet) supports the feature.

2) Documentation does need to be improved.

Edited by CyberSlug

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites
trids

I think josbe is asking how to present a second item in the "Files of type:" listbox.

In VB you can delimit the items with a pipe symbol (|) .. but this doesn't seem to work in Au3:

$test=FileOpenDialog( "Choose a file.", "c:\", "My Images (*.jpg;*.bmp)|All Files (*.*)", 1 + 4 )

I do seem to recall that an earlier helpfile mentioned how to do this, but the custom one i have for 3.0.91.0 is silent on the matter. :whistle:

Edited by trids

Share this post


Link to post
Share on other sites
Josbe

Maybe josbe means multiple separate filters?

Screenshot example

Posted Image

1)  I don't think AutoIt (yet) supports the feature.

2)  Documentation does need to be improved.

Thanks.

Exactly like the example CyberSlug's in the screenshot (thanks for that) :angry: ...

Before to ask, I also test like trids suggestion, but is displayed in the same line. B)

Is there any way? :whistle:

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  

×