kiboost Posted January 12, 2011 Share Posted January 12, 2011 (edited) Hi, FileOpenDialog seems to allways open itself at the last opened directory, not taking init dir into account. I have a contaxt menu with some bookmarks to open it at different locations, and whatever $path is, it open at last opened location. $path = $pref_path ; if context menu, change path For $i = 1 To $nbrbookmarks If @GUI_CtrlId = $Cmi_[$i] Then $path = $bookmark_path[$i] MsgBox("","",$path) EndIf Next Global $varcomp = FileOpenDialog("Select txt", $path, "Composition (*.txt)", 1) the msgbox is of course is as debug, and path is allways correct. Just openfiledialog don't use it ! How to force it to use it ? Edited January 21, 2011 by kiboost Win7 pro x64. scripts compiled to x64. - Autoit v3.3.6.1 | Scite 1.79 Link to comment Share on other sites More sharing options...
kiboost Posted January 12, 2011 Author Share Posted January 12, 2011 Sometimes things are simple .. Just keep in mind fileopendialog doesn't support "/" ! $path = StringReplace($path, "/", "\") Win7 pro x64. scripts compiled to x64. - Autoit v3.3.6.1 | Scite 1.79 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