Hallo,
ich möchte in einem Fenster neben einer Auswahl von zwei Optionen noch eine Möglichkeit anbieten, eine Config-Datei (Pfad und Namen) und einen Zielpfad zu setzen.
D.h. es sollten zwei Buttons her, ein Mal zur Dateiauswahl (FileOpenDialog?) und noch ein mit FileSelectFolder. Das kriege ich nicht gebacken in meinem Script:
C
#include <Process.au3>
#include <FileConstants.au3>
#include <MsgBoxConstants.au3>
#include <GUIConstantsEx.au3>
$hGUI = GUICreate("App", 500, 200)
$hRadio_1 = GUICtrlCreateRadio("path01", 10, 10, 200, 20)
GUICtrlSetState(-1, $GUI_CHECKED)
$hRadio_2 = GUICtrlCreateRadio("path02", 10, 50, 200, 20)
$hButton = GUICtrlCreateButton("Run", 10, 100, 80, 30)
GUISetState()
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
Case $hButton
If GUICtrlRead($hRadio_1) = 1 Then ;
MsgBox(0, "Option01")
Else
MsgBox(0, "Option02")
EndIf
EndSwitch
WEnd
Alles anzeigen