ripdad 100 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 Share this post Link to post Share on other sites
dmob 37 Posted March 17, 2020 Search the forum, there is a version written by Melba23. Share this post Link to post Share on other sites
ripdad 100 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 Share this post Link to post Share on other sites
TheXman 387 Posted March 17, 2020 I may be wrong, but I think @dmob is referring to the following post: About TheXman | CryptoNG UDF - Cryptography API: Next Gen | HttpApi UDF - HTTP Server API | jq UDF - Powerful and Flexible JSON Processor Share this post Link to post Share on other sites
ripdad 100 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 Share this post Link to post Share on other sites
Nine 930 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). Not much of a signature, but working on it... Spoiler Block all input without UAC Save/Retrieve Images to/from Text Tool to search content in au3 files Date Range Picker Sudoku Game 2020 Overlapped Named Pipe IPC x64 Bitwise Operations Fast and simple WCD IPC GIF Animation (cached) Share this post Link to post Share on other sites
ripdad 100 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 Share this post Link to post Share on other sites
ripdad 100 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 Share this post Link to post Share on other sites
AdamUL 98 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 Share this post Link to post Share on other sites