Printable Version of Topic

Click here to view this topic in its original format

AMIP Community _ Bug Reports _ dde regexp problem

Posted by: danse Mar 28 2006, 03:44 AM

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='.{"

Posted by: Guest Mar 28 2006, 03:48 AM

forgot to mention that im using amip 2.63 on winamp 5.11 and mirc 6.17

Posted by: Serge Mar 28 2006, 08:32 AM

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.

Posted by: Guest Mar 28 2006, 11:09 AM

thank you for your answer serge. problem solved smile.gif

Powered by Invision Power Board
© Invision Power Services