keotix Posted March 1, 2008 Share Posted March 1, 2008 Hello, i am trying to make a GUI with 3-4 text boxes and a run script button. i know how to do this, but not code it properly. when text is put into the 3-4 boxes i want the text to be put later in the script (so do i make variables?& how). when the run script button is submitted, i want the text submitted in the text boxes to be written in separate parts of the script. thanks. Link to comment Share on other sites More sharing options...
FireLordZi Posted March 1, 2008 Share Posted March 1, 2008 Does this help. Its ugly as shit but it works... #include <GUIConstants.au3> GUICreate("test", 150, 100) GUISetState() $input1 = GUICtrlCreateInput("", 5, 5, 60) $button1 = GUICtrlCreateButton("OK", 100, 5) $input2 = GUICtrlCreateInput("", 5, 35, 60) $button2 = GUICtrlCreateButton("OK", 100, 35) $input3 = GUICtrlCreateInput("", 5, 65, 60) $button3 = GUICtrlCreateButton("OK", 100, 65) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_Event_Close Exit 0 Case $msg = $button1 $data1 = GUICtrlRead($input1) ControlSetText("test", "", $input1, "") MsgBox(0, "", $data1, 3) Case $msg = $button2 $data2 = GUICtrlRead($input2) ControlSetText("test", "", $input2, "") MsgBox(0, "", $data2, 3) Case $msg = $button3 $data3 = GUICtrlRead($input3) ControlSetText("test", "", $input3, "") MsgBox(0, "", $data3, 3) EndSelect WEnd While Alive() { DrinkWine(); }AutoIt Programmer Link to comment Share on other sites More sharing options...
keotix Posted March 1, 2008 Author Share Posted March 1, 2008 Thank you, ill play around with it and see if i can get it to the thing. =] Link to comment Share on other sites More sharing options...
keotix Posted March 1, 2008 Author Share Posted March 1, 2008 (edited) Removed script, solved Edited March 2, 2008 by keotix Link to comment Share on other sites More sharing options...
keotix Posted March 1, 2008 Author Share Posted March 1, 2008 bump can someone help me finish my script please, use that code in post above, and add a GUI with 2 text boxes so when its submitted, it says that text. Link to comment Share on other sites More sharing options...
BinaryBrother Posted March 1, 2008 Share Posted March 1, 2008 You know more about what your script is doing than I do, but here is a good example on making the 'Send()' variable depending on response...$FirstWord1 = InputBox("Input Text","Type what you want to send now.") $FirstWord2 = InputBox("Input Text","Type what you want to send now.") Send($FirstWord1) Send($FirstWord2)Sorry if that isn't much help.P.S. Thanks to FireLordZi for supplying me with some very helpful info... SIGNATURE_0X800007D NOT FOUND 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