hi,
after some testing with mirc dde command and regexp in comparisons i cant understand why my dde command doesnt work. for %name like "Siliconesoul DJ Mix (ADDICTIVE BEAT RADIO - Global Underground Dance Music (Powered by Psychz.net))" i cannot get the following regexp to work
//echo $dde(mPlug,format,"%?name='.{0,20}'<to_long|%name>")
i excepted a "to long" but it echo'ed "%?name='.{"
forgot to mention that im using amip 2.63 on winamp 5.11 and mirc 6.17
You can't use comma there, mIRC thinks that it's a separator between $dde function arguments. You can try to replace it with a code, like {0 $+ $chr(44) $+ 20}, but a much better approach is to put what you need in AMIP preset and use "/dde mplug announce" command in mIRC. Then you don't have to escape all the stuff like spaces and commas that mIRC can't handle.
Also, in this particular case you should probably use:
$iflen(str,len,shortstr)
If str is longer than len, use shortstr, otherwise use str.
thank you for your answer serge. problem solved
Powered by Invision Power Board
© Invision Power Services