Using the VBS code

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Using the VBS code

Postby GORDON » Tue Jan 26, 2010 5:13 pm

I combined 2 items & put the code: PlaySound GetPath(2) + "KLEENEX.mp3". False in the VBS script but recieve an error Object required:[string: "KLEENEX.mp3"] not finding my "KLEENEX.mp3" file I've put in the external folder. I must be doing something wrong.
GORDON
Advanced Member
 
Posts: 154
Joined: Mon Apr 30, 2007 1:36 am
Location: Canada

Re: Using the VBS code

Postby mercedes » Tue Jan 26, 2010 5:20 pm

GORDON wrote:I combined 2 items & put the code: PlaySound GetPath(2) + "KLEENEX.mp3". False in the VBS script but recieve an error Object required:[string: "KLEENEX.mp3"] not finding my "KLEENEX.mp3" file I've put in the external folder. I must be doing something wrong.


PlaySound GetPath(2) + "KLEENEX.mp3". False

You need a comma...U have a period..:)

PlaySound GetPath(2) + "filename.mp3", False
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby juhuwoorps » Tue Jan 26, 2010 5:23 pm

if i remember right this is just a path error.
here in the forum is abig thread about this.
juhuwoorps
Code Master
 
Posts: 622
Joined: Tue Jul 08, 2008 3:13 pm

Postby Mystery » Tue Jan 26, 2010 5:29 pm

Here are the corresponding path numbers:
0 : location of the project folder
1: location of the "Root" sub-folder (in the compiled version of the project, it corresponds to the project folder)
2: location of the "External" sub-folder (default)
3: location of the "Config" sub-folder
4: location of the "Areas" sub-folder
5: location of the "Frames" sub-folder
6: location of the "FramesData" sub-folder
7: location of the "Icons" sub-folder

If your sound file is in the Areas subfolder (and not in the External folder), you need to use 4 instead of 2
Code: Select all
PlaySound GetPath(4) + "filename.mp3", False
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland

CODE

Postby GORDON » Tue Jan 26, 2010 5:57 pm

Thanks guys! I'll try it. Just being a rookie I appreciate the help.
GORDON
Advanced Member
 
Posts: 154
Joined: Mon Apr 30, 2007 1:36 am
Location: Canada


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests