mIRC Home    About    Download    Register    News    Help

Print Thread
#206356 13/11/08 05:55 PM
Joined: Oct 2008
Posts: 36
Rumieus Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Oct 2008
Posts: 36
* /splay: unable to play 'E:\mp3\mp3\Mp3\ANOTHE~1.MP3' (line 71, script3.mrc)

is there a way to detect this?


There's if in LIFE

Rumieus #206358 13/11/08 06:22 PM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Chances are you don't have the mp3 file.

You can detect it by opening the script editor, and while on it, press Ctrl+G to prompt a popup dialog. It will then ask you for the line number of the problematic line.

Tomao #206360 13/11/08 06:50 PM
Joined: Oct 2008
Posts: 36
Rumieus Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Oct 2008
Posts: 36
its not what i meant..

how to detect 'the file cannot be played' after using /splay

the error, '* /splay: unable to play' come out when mirc unable to play the file.

How to detect this? Any idea?


There's if in LIFE

Rumieus #206361 13/11/08 06:57 PM
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
Check the help file for :error, /reseterror and $error.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Rumieus #206363 13/11/08 07:01 PM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
How are you supposed to know the potential problem without locating line 71 from script3.mrc first? Moreover, how are you going to expect other people to assist you better without taking a look at your code?

Tomao #206364 13/11/08 07:08 PM
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
He just want a way to know how to detect the fact that in his code, an error has occured.

Last edited by Wims; 13/11/08 07:10 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Tomao #206365 13/11/08 07:09 PM
Joined: Oct 2008
Posts: 36
Rumieus Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Oct 2008
Posts: 36
code? /splay -wmp filename thats it.
if mirc can play the file, it play the sound file, if not, /splay unable to play come out.

my question is if any of you guys have an idea on how to detect */splay unable to play file*.


There's if in LIFE

Rumieus #206367 13/11/08 07:12 PM
Joined: Oct 2008
Posts: 36
Rumieus Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Oct 2008
Posts: 36
TQ wims


There's if in LIFE

Rumieus #206368 13/11/08 07:14 PM
Joined: Sep 2008
Posts: 62
_
Babel fish
Offline
Babel fish
_
Joined: Sep 2008
Posts: 62
Are you supposed to specify -wmp (wave, midi, mp3) as the format for the <filename> all together? Try using just -p

I could be 100% wrong, though. I've never messed with the media portions of mIRC =/

_Memo #206589 18/11/08 03:49 AM
Joined: Oct 2008
Posts: 36
Rumieus Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Oct 2008
Posts: 36
the file could be mp3,wave or midi.. so put -wmp..


There's if in LIFE

Rumieus #206590 18/11/08 04:24 AM
Joined: Sep 2008
Posts: 62
_
Babel fish
Offline
Babel fish
_
Joined: Sep 2008
Posts: 62
Under Wine I can't test mp3 playback, but if I specify a wave file with -m, it gives me the unable to play error. Works fine with -w though. Which leads me to believe my earlier conclusion might be correct but I can't verify this 100%

Any of you Windows users able to help this guy out?

_Memo #206592 18/11/08 04:30 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Under Windows the switches are no longer necessary. They have been maintained in order to retain compatability with scripts that use them when they were required.

I don't recall exactly when this change came about, but I believe it was before version 6


Link Copied to Clipboard