Kalin Posted October 19, 2010 Share Posted October 19, 2010 (edited) Here's my code. $Command_Line_Read = GUICtrlRead($Input1) If $Command_Line_Read = "e-mail" And _IsPressed("0D") Then _GUICtrlEdit_AppendText($Edit1, "- [Console]: " & "Enter the -e-mail of the user you would like to message." & @CRLF) Do If $Command_Line_Read And _IsPressed("0D") Then _GUICtrlEdit_AppendText($Edit1, "- [Console]: " & $Command_Line_Read & @CRLF) EndIf Until $Command_Line_Read And _IsPressed("0D") _GUICtrlEdit_AppendText($Edit1, "- [Solo]: " & "E-mail sent, " & $Command_Line_Read & "has been messaged." & @CRLF) GUICtrlSetData($input2, "") EndIf I'm am trying to make a loop where the edit does nothing until data is entered into the Edit. And afterwards the data you entered will be displayed. And then the data you entered gets e-mailed to whatever data you entered. Any help? Edited October 19, 2010 by Kalin Link to comment Share on other sites More sharing options...
enaiman Posted October 19, 2010 Share Posted October 19, 2010 I am a bit confused about your code ... however, the first issue I see is: In the actual form, $Command_Line_Read is evaluated once at the begining and the value is left unchanged.(it doesn't mean that everytime you use that variable it will really "re-read" the content of your input box) To have an idea about what is going wrong - replace all your "$Command_Line_Read" instances with "GUICtrlRead($Input1)" and you will see what is working/not working. SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) 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