Noobcube Posted January 14, 2008 Share Posted January 14, 2008 #include <GUIConstants.au3> GUICreate(" My GUI input acceptfile", 320,120, @DesktopWidth/2-160, @DesktopHeight/2-45, -1, 0x00000018); WS_EX_ACCEPTFILES $file = GUICtrlCreateInput ( "", 10, 5, 300, 20) GUICtrlSetState(-1,$GUI_DROPACCEPTED) GUICtrlCreateInput ("", 10, 35, 300, 20) ; will not accept drag&drop files $btn = GUICtrlCreateButton ("Ok", 40, 75, 60, 20) GUISetState () $msg = 0 While $msg <> $GUI_EVENT_CLOSE $msg = GUIGetMsg() Select Case $msg = $btn exitloop EndSelect Wend MsgBox (4096, "drag drop file", GUICtrlRead($file)) that will put typed(input box) text in a msgbox i have a gui with GUICtrlCreateInputs in it and i need the typed text to change one part of my other script how do i do it? thnx Link to comment Share on other sites More sharing options...
Paulie Posted January 14, 2008 Share Posted January 14, 2008 If you are trying to do what i think you are trying to do, then it would be much easier if you were to use GUIOnEventMode Link to comment Share on other sites More sharing options...
star2 Posted January 14, 2008 Share Posted January 14, 2008 (edited) I'm note sure what du u want !! #include <GUIConstants.au3> GUICreate(" My GUI input acceptfile", 320,120, @DesktopWidth/2-160, @DesktopHeight/2-45, -1, 0x00000018); WS_EX_ACCEPTFILES $file = GUICtrlCreateInput ( "", 10, 5, 300, 20) GUICtrlSetState(-1,$GUI_DROPACCEPTED) GUICtrlCreateInput ("", 10, 35, 300, 20) ; will not accept drag&drop files $btn = GUICtrlCreateButton ("Ok", 40, 75, 60, 20) GUISetState () While 1 $msg = GUIGetMsg() if $msg = $GUI_EVENT_CLOSE then exitloop Select Case $msg = $btn MsgBox (4096, "drag drop file", GUICtrlRead($file)) EndSelect Wend Edited January 14, 2008 by star2 [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u] 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