Sinisterly
I Need Help With File Save and Open Dialogs - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Coding (https://sinister.li/Forum-Coding--71)
+--- Thread: I Need Help With File Save and Open Dialogs (/Thread-I-Need-Help-With-File-Save-and-Open-Dialogs)



I Need Help With File Save and Open Dialogs - ReaperX - 11-16-2011

If i Use a FileOpen Dialog, How Would i Get The Directory of the Selected File to Display in a GUI InputBox?

For Example:
Code:
#include <GUIConstants.au3> $dir = GUICtrlCreateInput("", 0, 0, 30, 10) $browse = GUICtrlCreateButton("Browse", 30, 0) While 1 $msg = GUIGetMsg() if $msg = $GUI_EVENT_CLOSE Then Exit Select Case $msg = $browse $open = FileOpenDialog("Select a File", @DesktopDir, "All Files (*.*)") EndSelect WEnd

I Didnt Go In Depth But Can You help With This?


RE: I Need Help With File Save and Open Dialogs - 1234hotmaster - 11-16-2011

Code:
$gui = GUICreate("Some Gui",350,25) GUISetState() $dir = GUICtrlCreateInput("", 0, 2, 300, 21) $browse = GUICtrlCreateButton("Browse", 305, 0) While 1 Switch GUIGetMsg() Case -3 Exit Case $browse $open = FileOpenDialog("Select a File", @DesktopDir, "All Files (*.*)") If Not @error Then GUICtrlSetData($dir,$open) EndSwitch WEnd

=]


RE: I Need Help With File Save and Open Dialogs - ReaperX - 11-16-2011

Thanks. Ive Been Tryin to Figure that Out for a While. xD

Now I Fixed the Choose Installation Directory Input in the Installer Template.