Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ MUSHclient
➜ General
➜ What does this mean?
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
3
Posted by
| Katherina
(19 posts) Bio
|
Date
| Reply #30 on Tue 29 Jan 2008 07:26 AM (UTC) |
Message
| Hi,
I'm sorry to be a bother again but I've been looking for an example for a couple of hours now of how to send with a temp variable and haven't found anything. It's 3:30am and I have to get to bed.
What I am wanting to do is this. This is the vbscript
Send "decay" & targ
where targ is the local variable
I would guess it is probably Send ("decay", targ)
but I want to be sure. I'm changing a lot of code and it's difficult to debug so I want to make sure I do it right the first time.
| Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #31 on Tue 29 Jan 2008 07:46 AM (UTC) Amended on Tue 29 Jan 2008 07:47 AM (UTC) by Nick Gammon
|
Message
| As documented here:
http://www.gammon.com.au/scripts/function.php?name=Send
You can use multiple arguments to Send and they are concatentated together without a space between then so you might want to take that into account.
However the concatenation operator in Lua is .. so you could have written:
Note the brackets, and again note that no space will be supplied. So, if targ was "fish", it would send "decayfish" without a space. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
95,558 views.
This is page 3, subject is 3 pages long:
1
2
3
It is now over 60 days since the last post. This thread is closed.
Refresh page
top