mrnoob Posted August 2, 2005 Share Posted August 2, 2005 I need to have a few letters remembered after having been typed into an Input Box. For example: $Button = GUICtrlCreateButton("input", 140, 190, 70, 30) I'd like to have the "input" remembered so I can Send it later. Link to comment Share on other sites More sharing options...
Valuater Posted August 2, 2005 Share Posted August 2, 2005 I need to have a few letters remembered after having been typed into an Input Box. For example:$Button = GUICtrlCreateButton("input", 140, 190, 70, 30)I'd like to have the "input" remembered so I can Send it later.<{POST_SNAPBACK}>Dear Mr Noob,Your question is "WAY" to sharp for you to be a "Newbie"Should we guess who you are????8) Link to comment Share on other sites More sharing options...
Josbe Posted August 2, 2005 Share Posted August 2, 2005 Suggestion: Read the helpfile, there is useful functions. (Use variables, or read about these functions: IniWrite, IniRead). AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
Valuater Posted August 2, 2005 Share Posted August 2, 2005 Yea.. well if I am wrong... sorry and this should work for ya #include <GuiConstants.au3> Dim $answer GUICreate("my GUI") $Button = GUICtrlCreateButton("input", 140, 190, 70, 30) GUISetState() While 1 $msg = GuiGetMsg() If $msg = $Button Then $answer = InputBox("Question", "Where were you born?", "Planet Earth", "", -1, -1, 0, 0) MsgBox(0,"Remember input", " the ""$answer"" variable shown below may be used throughout your program " & @CRLF & @CRLF & " " & $answer) EndIf If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd Exit 8) Link to comment Share on other sites More sharing options...
mrnoob Posted August 2, 2005 Author Share Posted August 2, 2005 (edited) Thanks a lot to both of you; just shows what a great community this is. Anyhow, Valuater, I hate to burst your bubble, but I'm just a quite little newbie who very much doubts he knows you =P EDIT: The funny thing is I tried doing what you suggested before I posted and it didnt work, but of course it does now! Edited August 2, 2005 by mrnoob 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