syntax problem |
syntax problem |
Kaihawaii |
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 |
Serge |
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.
|
Kaihawaii |
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:\...) |
Serge |
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|> |
Kaihawaii |
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
|
Serge |
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 .
|
Kaihawaii |
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! |