mIRC Home    About    Download    Register    News    Help

Print Thread
#22179 03/05/03 07:15 PM
M
MTech
MTech
M
how can i make a hyperlink 12 (color12 and underlined)
from incoming text and out going text?

#22180 03/05/03 07:23 PM
Joined: Dec 2002
Posts: 698
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 698
Look down the list of threads in "Scripts & Popups", about 12 before this thread, titled "automatically underlining a url"

#22181 03/05/03 07:24 PM
M
MTech
MTech
M
yup looked at it before i posted but it seems that way too much is there and isnt needed

#22182 03/05/03 07:31 PM
Joined: Dec 2002
Posts: 698
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 698
Perhaps there is, why don't you see if you can do it better then? laugh

esit-
You've got a base to work on there, so have a go... grin

Last edited by Nimue; 03/05/03 07:32 PM.
#22183 03/05/03 07:32 PM
M
MTech
MTech
M
ill try

thankx for your help

#22184 03/05/03 07:44 PM
Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
By the way, here's a quick way to avoid a (slow) loop through the sentence,
Code:
alias stresslink {
  var %a
  !.echo -q $regsub($1-,/(\S*?(?:www\.|tps?://)\S*)/gi,\1,%a)
  return %a
}

For example, $stresslink($1-) will accomplish underlining of the relevant urls.

The underline (ctrl+u) code that appears before the \1 can be joined/replaced with any control code you wish to use.


Link Copied to Clipboard