|
|
Joined: Oct 2008
Posts: 36
Ameglian cow
|
OP
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
|
|
|
|
Joined: Jul 2007
Posts: 1,129
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
Joined: Oct 2008
Posts: 36
Ameglian cow
|
OP
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
|
|
|
|
Joined: Jul 2006
Posts: 4,149
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,149 |
Check the help file for :error, /reseterror and $error.
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Jul 2007
Posts: 1,129
Hoopy frood
|
Hoopy frood
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?
|
|
|
|
Joined: Jul 2006
Posts: 4,149
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Oct 2008
Posts: 36
Ameglian cow
|
OP
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
|
|
|
|
Joined: Oct 2008
Posts: 36
Ameglian cow
|
OP
Ameglian cow
Joined: Oct 2008
Posts: 36 |
There's if in LIFE
|
|
|
|
Joined: Sep 2008
Posts: 62
Babel fish
|
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 =/
|
|
|
|
Joined: Oct 2008
Posts: 36
Ameglian cow
|
OP
Ameglian cow
Joined: Oct 2008
Posts: 36 |
the file could be mp3,wave or midi.. so put -wmp..
There's if in LIFE
|
|
|
|
Joined: Sep 2008
Posts: 62
Babel fish
|
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?
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
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
|
|
|
|
|
|