|
wouziap
|
wouziap
|
on *:CHAT:*:{ if (FSrv* iswm $nick && %dccse == on) { if ($strip($1) isnum) { var %tmp.dccse.pav = 3 var %tmp.dccse.pavaz = $strip($2) while ($right(%tmp.dccse.pavaz,$calc($len(%tmp.dccse.pavaz)-4)) != .mp3) { var %priedas = $strip($chr(36) $+ %tm.dccse.pav $+) var %tmp.dccse.pavaz = %tmp.dccse.pavaz $+ %priedas inc %tmp.dccse.pav } did -a e8 1 + 0 0 0 %tmp.dccse.pavaz } } } i want to get the song's title and artist from text. For example, from: <FSrv[Leonard]> 13 foje - kitoks pasaulis.mp3 <<128 Kbs>> <<3.62 MB>> i want to get only foje - kitoks pasaulis.mp3 could somebody help me?
|
|
|
|
Joined: Dec 2002
Posts: 3,534
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,534 |
Type //echo -a $gettok(13 foje - kitoks pasaulis.mp3 <<128 Kbs>> <<3.62 MB>>,1,60)
|
|
|
|
DaveC
|
DaveC
|
on *:CHAT:*:{ tokenize 32 $strip($1-) | if ((FSrv* iswm $nick) && (%dccse == on) && ($1 isnum)) { did -a e8 1 + 0 0 0 $left($2-,$iif($pos($2-,.mp3),$calc($v1 + 3),$len($2-))) } }
|
|
|
|
wouziap
|
wouziap
|
thank's. and how to get the bitrate - 128 Kbs - from: 13 foje - kitoks pasaulis.mp3 <<128 Kbs>> <<3.62 MB>> ? 
|
|
|
|
DaveC
|
DaveC
|
Assuming $1- contains the text
$gettok($gettok($1-,2,$asc(<)),1,$asc(>))
* I have used $asc() instead of the raw asc values, so as to show you what is being done, I could have used $gettok($gettok($1-,2,60),1,62)
* Also IF you have used << & >> here instead of « » which may have been hard for you to insert into a forum thread, then you should use $gettok($gettok($1-,2,$asc(«)),1,$asc(»)) OR $gettok($gettok($1-,2,171),1,187)
|
|
|
|
wouziap
|
wouziap
|
//echo $gettok($gettok($strip(13 foje - kitoks pasaulis.mp3 <<128 Kbs>> <<3.62 MB>>),2,$asc(<)),1,$asc(>)) returns only: Kbs i need: 128 Kbs really don't understand what's wrong :\
|
|
|
|
Joined: Dec 2002
Posts: 3,534
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,534 |
Try //echo -a $gettok($gettok($strip(13 foje - kitoks pasaulis.mp3 <<128 Kbs>> <<3.62 MB>>),2,$asc(<)),1,$asc(>))
|
|
|
|
wouziap
|
wouziap
|
but on dialog only "Kbs"  did -a e8 1 + 0 0 0 $gettok($gettok($strip($1-),2,$asc(<)),1,$asc(>))
|
|
|
|
DaveC
|
DaveC
|
The 128 is being evaluated as something to do with the dialog, i dont use it myself, but i assume thats a mdx dialog, as the + 0 0 0 reminds me of one i have seen before (i think) you well need to find how to fill that space as well likely a 0
did -a e8 1 + 0 0 0 0 $gettok($gettok($strip($1-),2,$asc(<)),1,$asc(>)) [/quote]
and if that dont work try
did -a e8 1 + 0 0 0 0 $replace($gettok($gettok($strip($1-),2,$asc(<)),1,$asc(>)),$chr(32),$chr(160))
|
|
|
|
wouziap
|
wouziap
|
thank you very much again 
|
|
|
|
CSUH
|
CSUH
|
can anyone help me out with Pansat 2500 Code for dish network? thanks alot
|
|
|
|
Joined: Aug 2004
Posts: 7,168
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,168 |
This has nothing to do with mIRC or the IRC chat network. It appears to be an attempt to override coding on that dish network, which is illegal, and will not be assisted with on here.
|
|
|
|
|