mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
on *:dialog:MP:init:*:{ $findfile(%mpdir,*.asf,*.avi,*.mpeg,*.mpg,*.wmv,0,did -a MP 1 $nopath($1-)) }
I believe its the FileTypes... but I dont know any other way to go about this, Anyone know? =/

Last edited by Kriminal; 24/01/04 05:24 AM.
#69109 24/01/04 04:48 AM
I
Iori
Iori
I
mIRC can't handle multiple search patterns like that. You have to check each of them for a match.
Code:
on *:dialog:MP:init:*:{
  .echo -q $findfile(%mpdir,*.*,0,if ($istok(.asf.avi.mpeg.mpg.wmv,$gettok($1-,-1,46),46)) did -a MP 1 $nopath($1-))
}

#69110 24/01/04 04:52 AM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
Thanks, Credit will be added during 2.0 of my script. smile
Something like;
Iori - findfile problem - (www.mirc.com)
smile smile
Thanks a bunccccccccch

#69111 24/01/04 05:24 AM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
Oh Yea, How would I do it random now...? Like a random file with those filetypes... I tried but it messed up.. quite a bit frown

#69112 24/01/04 05:32 AM
I
Iori
Iori
I
Why not take a random line from the dialog listbox?

#69113 24/01/04 05:41 AM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
And how do you do that exactly... ? ;/

#69114 24/01/04 05:48 AM
I
Iori
Iori
I
//echo -a $did(MP,1,$rand(1,$did(MP,1).lines))

#69115 24/01/04 05:54 AM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
Thanks ;-)


Link Copied to Clipboard