Jump to content

Holding Data


Recommended Posts

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

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)

NEWHeader1.png

Link to comment
Share on other sites

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)

NEWHeader1.png

Link to comment
Share on other sites

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 by mrnoob
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...