ripdad Posted March 17, 2020 Share Posted March 17, 2020 (edited) Is there some way to WinMove a FileOpenDialog without using some external helper function? Edited March 18, 2020 by ripdad "The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward Link to comment Share on other sites More sharing options...
dmob Posted March 17, 2020 Share Posted March 17, 2020 Search the forum, there is a version written by Melba23. Link to comment Share on other sites More sharing options...
ripdad Posted March 17, 2020 Author Share Posted March 17, 2020 Thanks for the tip. I did searched the forum -- but did not come up with anything remotely what I needed for FileOpenDialog. Anyways, you have a link? "The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward Link to comment Share on other sites More sharing options...
TheXman Posted March 17, 2020 Share Posted March 17, 2020 I may be wrong, but I think @dmob is referring to the following post: CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
ripdad Posted March 17, 2020 Author Share Posted March 17, 2020 Well, what I was hoping for was perhaps FileOpenDialog embedded in a GUI, and then move the GUI -- If it was possible. I made an external helper script that does the job nicely, but was trying to avoid using it. "The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward Link to comment Share on other sites More sharing options...
Nine Posted March 17, 2020 Share Posted March 17, 2020 Not possible as this function is synchronous. Either you rewrite the OpenDialog for your own good (GUI mode), or use a Run single line of code, and receive result thru IPC (this could be as simple as a StdoutRead). “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
ripdad Posted March 17, 2020 Author Share Posted March 17, 2020 Nine, Okay thanks. I appreciate it. "The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward Link to comment Share on other sites More sharing options...
ripdad Posted March 18, 2020 Author Share Posted March 18, 2020 (edited) This is what I came up with after I found a way on the forum here: https://www.autoitscript.com/forum/topic/181491-question-about-autoit3executeline/?do=findComment&comment=1303207 Works very nice: Local $sCmd = '"Local $d1 = WinWait(""Open "", """"), $d2 = WinMove(WinGetHandle(""Open ""), """", 400, 1)"' Run(@AutoItExe & ' /AutoIt3ExecuteLine ' & $sCmd) You might have to adjust it a bit for your needs at: ""Open "" and the coordinates. Edited March 18, 2020 by ripdad "The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward Link to comment Share on other sites More sharing options...
AdamUL Posted March 19, 2020 Share Posted March 19, 2020 (edited) Here is a example using GUICreate. #include <Constants.au3> #include <WindowsConstants.au3> ;~ Global $hWnd = GUICreate("", -1, -1, 50, 50, $WS_POPUP) ;Left = 50, Top = 50 Global $hWnd = GUICreate("", -1, -1, @DesktopWidth / 4, @DesktopHeight / 4, $WS_POPUP) ;Centered Global $sFilePath = FileOpenDialog("", "", "CSV (*.csv)|Images (*.jpg;*.bmp)|Videos (*.avi;*.mpg)", $FD_FILEMUSTEXIST, "", $hWnd) If @error Then Exit GUIDelete($hWnd) ConsoleWrite(@CRLF & $sFilePath & @CRLF & @CRLF) Adam Edited March 19, 2020 by AdamUL 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