Register forum user name Search FAQ

Gammon Forum

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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ VBscript ➜ Reading and Writing to Files/Variables/Arrays

Reading and Writing to Files/Variables/Arrays

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Nickpick   (24 posts)  Bio
Date Sat 08 Apr 2006 10:38 AM (UTC)
Message
I've been trying this for a bit now, but I just can't find the right function.

Here's what I want to do:

1.) Trigger fires for the line: "TEST LINE"
2.) The client stores the following in a .txt file or a variable:

LINE1
LINE2
LINE3

3.) Client waits for the line: "ACT TEST"
4.) Trigger fires at the line "ACT TEST"
5.) Client reads the first line, i.e. LINE1, and sends to the world "LINE ONE HAS BEEN READ OUT"
6.) Client rewrites the line with as blank.
7.) Client waits for the line: "ACT TEST"
8.) Trigger fires at the line "ACT TEST"
9.) Client reads the first line, i.e. LINE2, and sends to the world "LINE TWO HAS BEEN READ OUT"
10.) And so on until all lines are readout

I know how to do with C++, but how do you stone something in this format in MUSH VBScript?

Any ideas?
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 08 Apr 2006 11:46 AM (UTC)
Message
I'm not absolutely sure I understand the question, however this post deals with accessing files from VBscript:

http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=1979

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nickpick   (24 posts)  Bio
Date Reply #2 on Sat 08 Apr 2006 01:35 PM (UTC)
Message
Thank you.
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.


14,687 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.