erezlevi Posted January 7, 2008 Share Posted January 7, 2008 hi, I need help, I have the follwoing lines: while 1 $part4 = InputBox ("Strings","Please enter string to sent to magic") $oInter=ObjCreate ("InterExe.Interface") $oInter.Initialize(0) $oInter.SendData($part4) $oInter.Terminate() WEnd while pressing on the "X" button to close the "inputbox" messagebox it does not close it and terminate it. how can it be done? I try to look at the GUI but there is no reference to "inputbox". any idea? Link to comment Share on other sites More sharing options...
Xenobiologist Posted January 7, 2008 Share Posted January 7, 2008 Hi, $part4 = InputBox("Strings", "Please enter string to sent to magic") IF @error then ExitLoop So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
star2 Posted January 7, 2008 Share Posted January 7, 2008 I'm not sure what u need but check this example $UserInput = "test" While 1 $answer = InputBox("Info is Required", "Please Input Your Access code.", "", "*") If @error = 1 Then MsgBox (-1,"test" , "you pressed Cancel"&@CRLF&"Now Exiting") Exit ElseIf $answer = $UserInput Then MsgBox (-1,"test","you typed test" & @crlf & "now Exiting",3) Exit ElseIf $answer <> $UserInput Then MsgBox (-1, "test", "you have entered the wrong password") EndIf WEnd [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