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 ➜ Basic Script Run Problem

Basic Script Run Problem

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


Posted by Boca   (15 posts)  Bio
Date Tue 24 Jul 2001 09:27 PM (UTC)
Message
I registered the VBSCRIPT.DLL and enabled scripting. Then I created a text file called GrimneTest.vbs in my worlds
directory. The contents of the file were:
sub test
world.note "Hello there!"
end sub

My problem is that MushClient can't find it when I click on Browse in the scripts configuration screen!! It simply does not show up and typing in the entire file name does not make a difference.

BTW, I have two character files in worlds - one is grimne and the other elrond. I was trying to run this from grimne.

Where am I going wrong?


Boca
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 24 Jul 2001 10:31 PM (UTC)
Message
It should find it. Are you sure it is ending in .vbs and not (for example) .vbs.txt?

Make sure you are in the right directory. Then type "*" as the file name. This will show all files with all extensions. If it is there it will find it.


- Nick Gammon

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

Posted by Boca   (15 posts)  Bio
Date Reply #2 on Tue 24 Jul 2001 10:38 PM (UTC)
Message
I just noticee one very odd thing when I opened MushClient and went to open a world - the GrimneTest.VBS file showed up there!!! So MushClient thinks it is a world file for some reason. I renamed it (to make sure) to GrimneTest.VBS
and it still shows up there!!

Also, does it matter where you save the script files?

Right now I have both world files, both trigger files, both alias files and one dysfunctional script file in the worlds directory. Should I create separate directories for each world?

Thanks,
Boca
Top

Posted by Boca   (15 posts)  Bio
Date Reply #3 on Tue 24 Jul 2001 11:00 PM (UTC)
Message
Nick,

You were right - the file name was GrimneTest.VBS.txt. I had to drop to DOS to see it, I had wrongly assumed that renaming it with a vbs extension would change it.

So I deleted it and started over, using notepad I saved it
with the "all files" option and when I put the .vbs extension on, the file type changed to VBSscript File.
Whew!

And it even ran - lol!

Thanks for the assist.

Boca
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #4 on Wed 25 Jul 2001 12:09 AM (UTC)
Message
The MUSHclient "open" will open "MCL" files (world files) and "TXT" files (text files) for the notepad.

Thus, when you had it with a ".txt" extension it showed up in MUSHclient's list of files to open. It didn't think it was a world file, it thought it was a notepad file.

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


19,286 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.