Guys, I need help
I am being asked to make a gui with inputbox and browse button
Here is what I need to do
Whenever I press browse button and open a txt file, the path must be indicated in the input path and output path inputboxes
And whenever I enter a path in the input path input box, it must be displayed on the ouput box.
Hope someone can help me, I will be very thankful.
#include <GUIConstants.au3>
main()
Func main()
GUICreate(" Filter Results", 387, 200, @DesktopWidth / 2 - 260, @DesktopHeight / 2 - 45)
$filter = GUICtrlCreateButton("Filter", 125, 170,100, 23)
GUICtrlCreateLabel("**Input Path**", 150, 35)
$path = GUICtrlCreateInput("",10,53,367,23)
$browse = GUICtrlCreateButton("Browse File", 135, 81,100, 23)
GUICtrlCreateLabel("**Output Path**", 148, 111)
$output = GUICtrlCreateInput("",10, 128,367,23)
GUISetState()
$msg = 0
While $msg <> $GUI_EVENT_CLOSE
$msg = GUIGetMsg()
Select
Case $msg = $browse
FileOpenDialog ("Browse", "C:\", "Text Documents (*.txt)")
EndSelect
WEnd
EndFunc