Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> syntax problem
Kaihawaii
post Feb 18 2008, 11:50 AM
Post #1


Newbie
*

Group: Members
Posts: 4
Joined: 18-February 08
Member No.: 474



hi, how i can adapt the folowing code for mirc and skype:

CODE
if(%stream=='http://%' || %stream=='mms://%') { %fn; }





greet from Berlin
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Feb 18 2008, 11:55 AM
Post #2


AMIP Developer
***

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



This makes no sense. %stream is a flag, it's either 1 or not set, %fn will already contain http or mms if stream is played, so I don't understand what you need.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Kaihawaii
post Feb 18 2008, 12:30 PM
Post #3


Newbie
*

Group: Members
Posts: 4
Joined: 18-February 08
Member No.: 474



i understand, at the moment i use this code:

CODE
$if(%stream,%fn,)


or

CODE
$if($mat(%min%sec,^0+$),%fn,)


but, this works only with a stream...
I want to output the path, ever when the music comes from the internet.
I don't output a local path (c:\...)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Feb 18 2008, 12:40 PM
Post #4


AMIP Developer
***

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



CODE
%?fn='http://|mms://'<%fn|>
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Kaihawaii
post Feb 18 2008, 01:05 PM
Post #5


Newbie
*

Group: Members
Posts: 4
Joined: 18-February 08
Member No.: 474



hmm, is this short-spelling? it's not working on my mirc or skype sad.gif

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Feb 18 2008, 01:13 PM
Post #6


AMIP Developer
***

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



Maybe some tweaks or escapes are necessary for the regexp, see http://amip.tools-for.net/wiki/manual/amip#conditions .
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Kaihawaii
post Feb 18 2008, 01:54 PM
Post #7


Newbie
*

Group: Members
Posts: 4
Joined: 18-February 08
Member No.: 474



yeha, it's working now so:

CODE
$if($mat(%fn,http:|mms:),%fn,%4)



thx for support!
User is offlineProfile CardPM
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: