Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> dde regexp problem
danse
post Mar 28 2006, 03:44 AM
Post #1


Unregistered









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='.{"
Go to the top of the page
+Quote Post
Guest
post Mar 28 2006, 03:48 AM
Post #2


Unregistered









forgot to mention that im using amip 2.63 on winamp 5.11 and mirc 6.17
Go to the top of the page
+Quote Post
Serge
post Mar 28 2006, 08:32 AM
Post #3


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Guest
post Mar 28 2006, 11:09 AM
Post #4


Unregistered









thank you for your answer serge. problem solved smile.gif
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: