Page 1 of 2

What the code to close it?

Posted: June 8th, 2010, 8:11 pm
by xnevilnx07
I wan to close the talk bar... What's the code pls help me

Re: What the code to close it?

Posted: June 9th, 2010, 8:12 am
by arcones
When you are at the end of the script, just make a button that says close

Code: Select all

guibutton "[close]" "cleargui"
]
Add that under the last bit of text in your script and that should close the box.
Have a good one,

Arcones :geek:

Re: What the code to close it?

Posted: June 9th, 2010, 8:34 am
by Leo_V117
Actually, arc, if you read the TUT correctly, I stated that the button name should be within "" and the function within []

@xnevilnx07: Its better if you do this:

Code: Select all

guibutton "Close" [cleargui; echo "See Ya"; sleep 1000 [say "Bye"]]
Hope that Helps.
- Leo

Re: What the code to close it?

Posted: June 9th, 2010, 8:36 am
by arcones
Yeah, my point was this, my close was just saying a "this is a close button." I just did an easy example. :)

Re: What the code to close it?

Posted: June 9th, 2010, 8:39 am
by Leo_V117
Oh, Okay, But It is easy to make a mistake and misread the statement.

Re: What the code to close it?

Posted: June 9th, 2010, 8:43 am
by arcones
Yeah it is :)

Re: What the code to close it?

Posted: June 10th, 2010, 10:14 am
by xnevilnx07
Thanks for you to reply me

Re: What the code to close it?

Posted: June 10th, 2010, 11:13 am
by Runescapedj
So this is the way you guys (Leo and Arc) get so much posts!

Re: What the code to close it?

Posted: June 10th, 2010, 11:14 am
by arcones
Uh huh!

:D

Re: What the code to close it?

Posted: June 10th, 2010, 11:31 am
by Leo_V117
Yep... Im the menu coder, hes the argument coder... although I can do both.