|
|
Rumieus
|
Rumieus
|
* /splay: unable to play 'E:\mp3\mp3\Mp3\ANOTHE~1.MP3' (line 71, script3.mrc)
is there a way to detect this?
|
|
|
|
Joined: Jul 2007
Posts: 1,124
Hoopy frood
|
Hoopy frood
Joined: Jul 2007
Posts: 1,124 |
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.
|
|
|
|
Rumieus
|
Rumieus
|
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?
|
|
|
|
Joined: Jul 2006
Posts: 4,020
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,020 |
Check the help file for :error, /reseterror and $error.
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Jul 2007
Posts: 1,124
Hoopy frood
|
Hoopy frood
Joined: Jul 2007
Posts: 1,124 |
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,020
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,020 |
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
|
|
|
|
Rumieus
|
Rumieus
|
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*.
|
|
|
|
_Memo
|
_Memo
|
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 =/
|
|
|
|
Rumieus
|
Rumieus
|
the file could be mp3,wave or midi.. so put -wmp..
|
|
|
|
_Memo
|
_Memo
|
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,168
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,168 |
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
|
|
|
|
|
|