mIRC Home    About    Download    Register    News    Help

Topic Options
#83430 - 19/05/04 04:24 AM Retrieving line numbers in an ON HOTLINK event
dustin Offline
Self-satisified door

Registered: 26/03/04
Posts: 4
Would be very useful...

Top
#83431 - 19/05/04 07:41 AM Re: Retrieving line numbers in an ON HOTLINK event
slartibartfast Offline
Nutrimatic drinks dispenser

Registered: 29/04/04
Posts: 9
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

Top
#83432 - 19/05/04 10:56 AM Re: Retrieving line numbers in an ON HOTLINK event
qwerty Offline
Hoopy frood

Registered: 07/01/03
Posts: 2523
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.
_________________________
/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Top
#83433 - 19/05/04 01:56 PM Re: Retrieving line numbers in an ON HOTLINK event
starbucks_mafia Offline
Hoopy frood

Registered: 09/12/02
Posts: 2962
Loc: Norwich, UK
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.
_________________________
Spelling mistakes, grammatical errors, and stupid comments are intentional.

Top
#83434 - 04/06/04 05:36 PM Re: Retrieving line numbers in an ON HOTLINK event
dustin Offline
Self-satisified door

Registered: 26/03/04
Posts: 4
Quote:
67. Added $hotlinepos, returns line and word position.


Wow, he DOES read these. Cool.

Top