mIRC Homepage

Retrieving line numbers in an ON HOTLINK event

Posted By: dustin

Retrieving line numbers in an ON HOTLINK event - 19/05/04 03:24 AM

Would be very useful...
Posted By: slartibartfast

Re: Retrieving line numbers in an ON HOTLINK event - 19/05/04 06:41 AM

Yea probably....

But in the meantime you can always use $fline(..) to search for the macthing line number (helps if you have Timestamp as it will create "semi"-uniqe lines)

Note: Wildmatch with no wildcards equals exact match
Posted By: qwerty

Re: Retrieving line numbers in an ON HOTLINK event - 19/05/04 09:56 AM

As slartibartfast suggested, you can use something like $fline($active,$hotline). It isn't 100% accurate, because a specific line could occur twice in a window buffer, but it's close.

But I agree, I too would like a way of retrieving the line number as well as the position of the clicked word in the line.
Posted By: starbucks_mafia

Re: Retrieving line numbers in an ON HOTLINK event - 19/05/04 12:56 PM

Agreed.

While we're on the subject, I'd also like to see an identifier for on HOTLINK to give the index of the word clicked. Currently if a word appears twice on a line and is used as a hotlink it's impossible for a script to know which was clicked.
Posted By: dustin

Re: Retrieving line numbers in an ON HOTLINK event - 04/06/04 04:36 PM

Quote:
67. Added $hotlinepos, returns line and word position.


Wow, he DOES read these. Cool.
© 2019 mIRC Discussion Forums