Sign in to follow this  
Followers 0
WeMartiansAreFriendly

fileopendialog, filesavediolog

3 posts in this topic

#1 ·  Posted (edited)

hi, i need fileopendialog, and filesavedialog to return more than just the selected filename

amel27 wrote this highly overlooked script, but it also only returns filenames http://www.autoitscript.com/forum/index.ph...st&p=278920

what would really be benificial is if it returns an array of values, see this example..

$sfile = _FileOpenDialog ('Open File',@ScriptDir,'All Files(*.*)|Executables(*.exe)|Text Files(*.txt;*.ini)',4)

#cs
should return ...
$sfile[0] = selected file(s)
$sfile[1] = selected file extension
$sfile[2] = selected filepath, i.e. desktop directory
#ce
 
$sfile = _FileSaveDialog ('Save File',@ScriptDir, 'All Files(*.*)|Executables(*.exe)|Text Files(*.txt;*.ini)',4)

#cs
should return ...
$sfile[0] = selected filename
$sfile[1] = selected file extension
$sfile[2] = selected filepath, i.e. desktopdirectory
#ce
Edited by mrRevoked

Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet()

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

what would really be benificial is if it returns an array of values, see this example..

$sfile = _FileOpenDialog ('Open File',@ScriptDir,'All Files(*.*)|Executables(*.exe)|Text Files(*.txt;*.ini)',4)

#cs
should return ...
$sfile[0] = selected file(s)
$sfile[1] = selected file extension
$sfile[2] = selected filepath, i.e. desktop directory
#ce
 
$sfile = _FileSaveDialog ('Save File',@ScriptDir, 'All Files(*.*)|Executables(*.exe)|Text Files(*.txt;*.ini)',4)

#cs
should return ...
$sfile[0] = selected filename
$sfile[1] = selected file extension
$sfile[2] = selected filepath, i.e. desktopdirectory
#ce
I don't know if I misunderstood you post, but it look that you want to split the return from _FileOpeDialog() and _FileSaveDialog() into file name, file extension and directory parts. In that case why don't you use _PathSlpit()? Edited by Danny35d

AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line

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  
Followers 0