mIRC Home    About    Download    Register    News    Help

Print Thread
#63256 07/12/03 05:16 PM
Joined: Jul 2003
Posts: 742
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
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
}
 


http://MTec89Net.com
irc.freenode.net #MTec89Net
#63257 08/12/03 10:03 AM
Joined: Nov 2003
Posts: 227
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
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: 742
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
no, i mean open the find files dialog ($sfile), display only mp3s, and ~highLIGHT~ the last file that was played


http://MTec89Net.com
irc.freenode.net #MTec89Net
#63259 09/12/03 04:38 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Well, then the answer is you can't.


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


http://MTec89Net.com
irc.freenode.net #MTec89Net
#63261 09/12/03 11:51 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Can't highlight, and in this case can't display just mp3.


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


http://MTec89Net.com
irc.freenode.net #MTec89Net
#63263 11/12/03 04:24 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
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