mIRC Homepage
Posted By: MTech hyperlinks - 03/05/03 07:15 PM
how can i make a hyperlink 12 (color12 and underlined)
from incoming text and out going text?
Posted By: Nimue Re: hyperlinks - 03/05/03 07:23 PM
Look down the list of threads in "Scripts & Popups", about 12 before this thread, titled "automatically underlining a url"
Posted By: MTech Re: hyperlinks - 03/05/03 07:24 PM
yup looked at it before i posted but it seems that way too much is there and isnt needed
Posted By: Nimue Re: hyperlinks - 03/05/03 07:31 PM
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
Posted By: MTech Re: hyperlinks - 03/05/03 07:32 PM
ill try

thankx for your help
Posted By: Online Re: hyperlinks - 03/05/03 07:44 PM
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.
© mIRC Discussion Forums