mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 6
N
NathanO Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Dec 2002
Posts: 6
I am trying to display the line:

[Site: http://www.mirc.com]-[Last Update: 25/06/2003]

but with coloured brackets. ( [ & ] )

My code is this:

//msg #membersonly -7[Site: http://www.mirc.com 7]-7[Last update: 25/06/20037]-

But I don't want the space between '.com' and '7]-7[Last update: 25/06/20037]-'

If I do it like this:

//msg #membersonly -7[Site: http://www.mirc.com7]-7[Last update: 25/06/20037]-

When I right click on the link and open it, mIRC adds some characters to the end of the address and therefore the page does not load.

Is it possible to have a clickable link with colours surrounding it while having no spaces ?


- NathanO -

IRC: NathanO @ EFNet
MSN: --NathanO--

Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
keep ur code as it is but add this as well

on 1:HOTLINK:*:{
if ($hotline == http://www.mirc.com) {
/run iexplore $left($hotline,19)
}
}

Last edited by pheonix; 25/06/03 11:49 AM.

new username: tidy_trax
Joined: Dec 2002
Posts: 6
N
NathanO Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Dec 2002
Posts: 6
Thanks! smirk


- NathanO -

IRC: NathanO @ EFNet
MSN: --NathanO--

Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
That would assume that the address is a fixed length of 19 characters.

As for clicking a link that has colors/codes around it, I've never noticed mIRC sending the control codes to the browser, only the correct URL. If NathanO is using a HOTLINK because his prefered browser isn't Internet Explorer, then he might try $strip($hotline) to strip it of control codes.

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!

Link Copied to Clipboard