Jump to content

Is it possible to set the position of FileOpenDialog()?

Recommended Posts


I'd simply like to be able to set the position of the FileOpenDialog(). It this possible? I think not as there's no parameter for this and I can't change the source code for it as it's a build in function. I have no code representing any tests I have done to solve my own issue as per the previous.

BTW, Yashied's recent TVExplorer and Melba23's ChooseFileFolder while both excellent are not what I want.



Link to post
Share on other sites
  • Moderators


Would you mind explaining just why my ChooseFileFolder UDF does not meet your requirements? :)

It could be modified if the changes you would like to see are not too great. Unfortunately the time taken to populate the treeview cannot be shortened any more as far as I can see - and believe me I have looked! ;)


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:


ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area


Link to post
Share on other sites

You can use WinMove() to put the standard dialog anyplace you want it to be but remember that the FileOpenDialog() is the standard Windows dialog and is subject to the default position as set by Microsoft. They are the ones that didn't put in the size and position parameters not the AutoIt devs.


Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver: - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to post
Share on other sites
Link to post
Share on other sites


It's great to see so many replies each with different possible solutions.


Yep, that works brilliantly and suits me to a tee as I just want it away from top left. Simple and to the point. Thanks to you and MrCreatoR.


Unless I'm missing something significant, I don't see how I could WinMove() the FileOpenDialog() window while it's active (showing) as the script pauses until a file is chosen or cancelled. I suspect that I actually am missing something as it doesn't seem likely that you would say something that doesn't make sense. In any case I can't see how I'd get the return value from FileOpenDialog if I wrapped it inside a WinMove(). (Scratching head and nodding to self.... ????


Yes, succinct as usual. Yours also works well. Thank you.


I know you took no offence at my comment but to explain, your great function is an overkill for what I need. I simply want the user to pick a single file from a subdirectory that I specify which FileOpenDialog() does perfectly well.

Thank you all guys. It's nice to get replies from so many of the very experienced users here.



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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...