WeMartiansAreFriendly Posted February 16, 2007 Share Posted February 16, 2007 (edited) hi, i need fileopendialog, and filesavedialog to return more than just the selected filenameamel27 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 February 16, 2007 by mrRevoked Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet() Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 16, 2007 Moderators Share Posted February 16, 2007 http://www.autoitscript.com/forum/index.ph...st&p=293524 Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Danny35d Posted February 17, 2007 Share Posted February 17, 2007 (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 #ceI 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 February 17, 2007 by Danny35d AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now