Jump to content

Loop help?


Kalin
 Share

Recommended Posts

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 by Kalin
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...