mIRC Home    About    Download    Register    News    Help

Print Thread
#206356 13/11/08 05:55 PM
R
Rumieus
Rumieus
R
* /splay: unable to play 'E:\mp3\mp3\Mp3\ANOTHE~1.MP3' (line 71, script3.mrc)

is there a way to detect this?

#206358 13/11/08 06:22 PM
Joined: Jul 2007
Posts: 1,124
T
Hoopy frood
Offline
Hoopy frood
T
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.

Tomao #206360 13/11/08 06:50 PM
R
Rumieus
Rumieus
R
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?

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


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
#206363 13/11/08 07:01 PM
Joined: Jul 2007
Posts: 1,124
T
Hoopy frood
Offline
Hoopy frood
T
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?

Tomao #206364 13/11/08 07:08 PM
Joined: Jul 2006
Posts: 4,020
W
Hoopy frood
Offline
Hoopy frood
W
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
Tomao #206365 13/11/08 07:09 PM
R
Rumieus
Rumieus
R
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*.

#206367 13/11/08 07:12 PM
R
Rumieus
Rumieus
R
TQ wims

#206368 13/11/08 07:14 PM
_
_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 =/

#206589 18/11/08 03:49 AM
R
Rumieus
Rumieus
R
the file could be mp3,wave or midi.. so put -wmp..

#206590 18/11/08 04:24 AM
_
_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?

#206592 18/11/08 04:30 AM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
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


Link Copied to Clipboard