mIRC Home    About    Download    Register    News    Help

Print Thread
Retrieving line numbers in an ON HOTLINK event #83430
19/05/04 03:24 AM
19/05/04 03:24 AM
Joined: Mar 2004
Posts: 4
D
dustin Offline OP
Self-satisified door
dustin  Offline OP
Self-satisified door
D

Joined: Mar 2004
Posts: 4
Would be very useful...

Re: Retrieving line numbers in an ON HOTLINK event #83431
19/05/04 06:41 AM
19/05/04 06:41 AM
Joined: Apr 2004
Posts: 9
S
slartibartfast Offline
Nutrimatic drinks dispenser
slartibartfast  Offline
Nutrimatic drinks dispenser
S

Joined: Apr 2004
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

Re: Retrieving line numbers in an ON HOTLINK event #83432
19/05/04 09:56 AM
19/05/04 09:56 AM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
qwerty  Offline
Hoopy frood
Q

Joined: Jan 2003
Posts: 2,523
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
Re: Retrieving line numbers in an ON HOTLINK event #83433
19/05/04 12:56 PM
19/05/04 12:56 PM
Joined: Dec 2002
Posts: 2,962
Norwich, UK
S
starbucks_mafia Offline
Hoopy frood
starbucks_mafia  Offline
Hoopy frood
S

Joined: Dec 2002
Posts: 2,962
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.
Re: Retrieving line numbers in an ON HOTLINK event #83434
04/06/04 04:36 PM
04/06/04 04:36 PM
Joined: Mar 2004
Posts: 4
D
dustin Offline OP
Self-satisified door
dustin  Offline OP
Self-satisified door
D

Joined: Mar 2004
Posts: 4
Quote:
67. Added $hotlinepos, returns line and word position.


Wow, he DOES read these. Cool.