mIRC Home    About    Download    Register    News    Help

Print Thread
#197318 02/04/08 02:10 AM
Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
Code:
/set %dir $qt($sdir(c:,"search")) 

%dir "E:\Musica\2008.Año.De.Exitos.4.CDS.WwW.xxxxxx.es\2008 Exitos Pop\"

//echo -a $findfile(%dir,*.mp3,1) <- E:\Musica\2008.Año.De.Exitos.4.CDS.WwW.xxxxxx.es\2008 Exitos Pop\01 - Baila Mi Corazón.mp3

/splay $findfile(%dir,*.mp3,1) <- /splay: no such file '$findfile(%dir,*.mp3,1)'

Last edited by kwell; 02/04/08 02:11 AM.
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Use // and not /.

Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
With //splay $findfile(%dir,*.mp3,1) closes the mirc cry
Thank you for answering SladeKraven

Last edited by kwell; 02/04/08 02:33 AM.
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
When using only / it doesn't evaluate the text. That's why we use //. Weird how your mIRC closed though.

Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
It may be a route problem of the folder due to I don´t have the same problem with all of them?
Could it be that the problem is the space between words?

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
It probably isn't the space, but you might consider trying to replace the ñ in the path and just see if it works fine after that. If that doesn't help, try renaming the entire path to something short (c:\test\something.mp3, for example) and see if it still crashes. If either of those things makes it work, then it's something in the path/filename that is causing you problems.


Invision Support
#Invision on irc.irchighway.net
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
Try using $shortfn instead of $qt when setting the path


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
Try in a number of ways with no success
bug in the code?
Code:
on *:dialog:play:sclick:3: { set %dir $shortfn($sdir(c:,"Elije un directorio")) | lista }
on *:dialog:play:sclick:6: { 
  if (!$did(1).sel) && ($inmp3 == $false) { echo 2 -a *** Por favor, selecciona una canción de la lista y luego haga clic en Play | return }
  if ($did($dname,6).text = PLAY) {
    did -ra $dname 6 STOP 
    set %track $did(1).sel
    splay $findfile(%dir,*.mp3,%track)
    did -c play 1 %track
    data
    did -ra $dname 9 $remove($nopath($inmp3.fname),.mp3) 
  }
  else { did -r $dname 9 | splay stop | did -ra $dname 6 PLAY }
}
alias -l data {
  if (!$chan(0)) { echo -a PLAY: $remove($nopath($insong.fname),.mp3) }
  else { /ame PLAY: $remove($nopath($insong.fname),.mp3) }
}


Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
try splay -p since it's an .mp3


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
Nopes

Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
Are you sure you don't have any other alias findfile ? and what's going on if you try to //splay the file in an editbox with the *exactly path* ?


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
If you happen to be using a hacked (cracked) version of mIRC, there are known bugs in those versions. I haven't heard of one for /splay, but if you're using a version other than the real version of mIRC, you should get rid of it and download a good copy and try again.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard