Basic Script Run Problem

Posted by Boca on Tue 24 Jul 2001 09:27 PM — 5 posts, 20,105 views.

#0
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
Australia Forum Administrator #1
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.

#2
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
#3
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
Australia Forum Administrator #4
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.