faire Posted May 16, 2008 Share Posted May 16, 2008 (edited) Is it possible to only allow the selection of a direrectory [through FileSelectFolder] if a certain file is present (so the "Open" button stays grayed out until a valid directory has been selected; that being a directory where said file is present)? Edited May 16, 2008 by faire Link to comment Share on other sites More sharing options...
faire Posted May 16, 2008 Author Share Posted May 16, 2008 *bump* I'm now checking if the directory is valid in another function. Still it would be interesting to know if anyone has an answer to this question. It'd be a nice feature in my opinion. Link to comment Share on other sites More sharing options...
MerkurAlex Posted May 16, 2008 Share Posted May 16, 2008 *bump*I'm now checking if the directory is valid in another function. Still it would be interesting to know if anyone has an answer to this question. It'd be a nice feature in my opinion.You would have to recreate the gui yourself as i believe that function pauses the wholes script stopping you from disabling the button or re-enabling it this is the only solution i see other than have two scripts do it one runs that function the other watches and disables then enables the button. [quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote] Link to comment Share on other sites More sharing options...
rasim Posted May 17, 2008 Share Posted May 17, 2008 Is it possible to only allow the selection of a direrectory [through FileSelectFolder] if a certain file is present (so the "Open" button stays grayed out until a valid directory has been selected; that being a directory where said file is present)?You can check a selected folder validation after choosing, e.g.: Do $SelectFolder = FileSelectFolder("Choose a folder...", "", 0, @DesktopDir) Until StringInStr($SelectFolder, @DesktopDir) > 0 MsgBox(0, "", $SelectFolder) Link to comment Share on other sites More sharing options...
Zedna Posted May 17, 2008 Share Posted May 17, 2008 You can use similar clever approach as siao in his nice example for File Open/Save Dialogs customizationLook here Resources UDF ResourcesEx UDF AutoIt Forum Search 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