Login Register






I Need Help With File Save and Open Dialogs filter_list
Author
Message
I Need Help With File Save and Open Dialogs #1
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?
(This post was last modified: 11-16-2011, 02:36 AM by doojan.)

Reply

RE: I Need Help With File Save and Open Dialogs #2
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

=]
Pierce the life fibers with your drill.

Reply

RE: I Need Help With File Save and Open Dialogs #3
Thanks. Ive Been Tryin to Figure that Out for a While. xD

Now I Fixed the Choose Installation Directory Input in the Installer Template.
(This post was last modified: 11-16-2011, 02:56 AM by doojan.)

Reply