Synthesis Posted July 8, 2009 Posted July 8, 2009 (edited) Ok, now I have another problem.. I have this script (this is not all) $1 = "Username" $2 = "Password" $input = guictrlcreateinput ($1, 10,10) $button = guictrlcreatebutton ("button",50,50) while 1 $msg = guigetmsg () select case $msg = $button $variable = guictrlread ($1) XXXX endselect wend I know I did not typed it all correctly. Where is XXXX i want to insert guictrlsetdata, so $1 will receive $2. What is the code for that? Edited July 8, 2009 by Nephentes
Inverted Posted July 8, 2009 Posted July 8, 2009 I don't understand , do you want to read from the input or write stuff there ?
Synthesis Posted July 8, 2009 Author Posted July 8, 2009 Ok. Sorry, I typed it really wrong...$1 = "Username"$2 = "Password"$input = guictrlcreateinput ($1, 10,10)$button = guictrlcreatebutton ("button",50,50)while 1$msg = guigetmsg ()selectcase $msg = $button $variable = guictrlread ($1) guictrlsetdataendselectwendWhen the button is pressed, the text from $1 (Username) will become Password (what it is in $2) and the input box will display "Password"
Inverted Posted July 8, 2009 Posted July 8, 2009 How is this ? #include <GUIConstantsEx.au3> $1 = "Username" $2 = "Password" GUICreate("Title goes here") $input = guictrlcreateinput ($1, 10,10) $button = guictrlcreatebutton ("button",50,50) GUISetState() while 1 $msg = guigetmsg () select case $msg = $button $1 = GUICtrlRead($input) GUICtrlSetData($input, $2) Case $msg = $GUI_EVENT_CLOSE ExitLoop endselect wend
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