mIRC Home    About    Download    Register    News    Help

Print Thread
#63256 07/12/03 05:16 PM
Joined: Jul 2003
Posts: 733
M
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
M
Joined: Jul 2003
Posts: 733
how can i only look for music mIRC can play, and how can i auto select the last song that was played in the dialog?

Code:
alias play {
  if (!%mp3ddir) { set %mp3ddir $$sdir(C:\music,Pick MP3 DIR) }
  set %mp3.csong $$sfile(%mp3ddir,Pick MP3,Play)
  mp3.play
}
alias mp3.play {
  .splay $+(",%mp3.csong,")
  .mp3.update
  .set %mp3.splay 1
}
 

#63257 08/12/03 10:03 AM
Joined: Nov 2003
Posts: 203
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 203
If you want to find files that mIRC can play then $findfile is what you might want to use,
$findfile(C:\,*.mp3,0) would return the total number of .mp3 files on C: if you replaced the 0 for a 1 then it would return the first file it found. For repeating the last song you are listening to you should have the song stored in a global variable then you can use on *:mp3end:splay %varname to repeat the song again.

#63258 09/12/03 01:23 AM
Joined: Jul 2003
Posts: 733
M
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
M
Joined: Jul 2003
Posts: 733
no, i mean open the find files dialog ($sfile), display only mp3s, and ~highLIGHT~ the last file that was played

#63259 09/12/03 04:38 AM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
Well, then the answer is you can't.

#63260 09/12/03 12:47 PM
Joined: Jul 2003
Posts: 733
M
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
M
Joined: Jul 2003
Posts: 733
cant highlight?
or cant display mp3s?

#63261 09/12/03 11:51 PM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
Can't highlight, and in this case can't display just mp3.

#63262 10/12/03 12:23 AM
Joined: Jul 2003
Posts: 733
M
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
M
Joined: Jul 2003
Posts: 733
;/ ok thx

#63263 11/12/03 04:24 PM
I
Iori
Iori
I
You can't highlight the last played, but to display just .mp3
$$sfile($+(%mp3ddir,*.mp3),Pick MP3,Play)
For .mp3/.ogg/.wma
$$sfile($+(%mp3ddir,*.mp3;*.ogg;*.wma),Pick Sound,Play)

You could use this to put the last played into the filename box, but it still won't highlight/select the file.
$$sfile($+(%mp3ddir,filename.mp3),Pick MP3,Play)


Link Copied to Clipboard