Wb-FreeKill Posted March 23, 2005 Share Posted March 23, 2005 If i forexample name the file "myfile", the data it would set for my inputbox(FileDes) be "MyFile", but how can i in the best way secure that the exstetions allways would be .exe, whatever you writes it in the filename or not? While 1 $msg = Guigetmsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop If $msg = $DesBrowse Then $SavsAs = FileSaveDialog("", @Scriptdir, "Executable files (*.exe;*.exe)", 3) If NOT @error Then GUICtrlSetData($FileDes, $SavsAs) EndIf EndIf WEnd Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted March 23, 2005 Author Share Posted March 23, 2005 And, how do i make the Inputbox "disabled" not ES_READONLY, so u can't input, and you can't set the curser in it..? Link to comment Share on other sites More sharing options...
Valuater Posted March 24, 2005 Share Posted March 24, 2005 here's a try for ya #include <GUIConstants.au3> Dim $GUIWidth, $GUIHeight $GUIWidth = @DesktopWidth /2 $GUIHeight = @DesktopHeight /2 $My_win = GUICreate("*My GUI Window",$GUIWidth, $GUIHeight,-1,-1,-1,-1) GUICtrlCreateLabel("Simply... try to edit this box below ", 10, 7, 600, 30) GUICtrlSetFont(-1, 14, 10) $Edit_1 = GUICtrlCreateEdit("Hey, " & @CRLF & @CRLF & "try to change this" & @CRLF & @CRLF & "Enjoy!", 10, 40, 480, 300) GUICtrlSetState($Edit_1,$GUI_DISABLE) $_OK = GUICtrlCreateButton("OK", 210, 350, 70, 25) GUISetState(@SW_SHOW,$My_win) ; will display the dialog box while 1 $Msg = GuiGetMsg() If $Msg = $GUI_EVENT_CLOSE then Exit If $Msg= $_OK then Exit WEnd good luck Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now