mIRC Home    About    Download    Register    News    Help

Print Thread
lagchecker #144432 10/03/06 10:24 AM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
i have lag checker that shows delay in titlebar
problem is that it always breaks my idle time :P

Code:
 
---------------------
REMOTE:
--------------------

on 1:CONNECT: {
/lagnow
}

on 1:DISCONNECT: {
/lagstop
}


ON ^*:OPEN:?: {
  if ($nick == $me) {
    if (%lagt = $null) return
    var %lag = $calc(($ticks -$2) /1000)
    /set %lags %lag
   haltdef
 }
}

------------------------
ALIAS:
------------------------

/lagtest if ($server = $null) { halt } | .raw -q pong $server $server | .msg $me Lagt $ticks 
/lagnow { .timerlag 0 20 lagtest }
/lagstop { .timerlag off | .timerlags off }

;where 20 is lag check delay
 


so, problem is actually that when i am away
this method breaks my idle time, so every 20 seconds
my time resets smirk
and i wold like this meter to use "native" mirc
ping->pong so it dont break any "natural time"

if you understand :P

any help?


IceCapped
Re: lagchecker #144433 10/03/06 10:53 AM
Joined: Jan 2006
Posts: 64
S
SoundreameR Offline
Babel fish
Offline
Babel fish
S
Joined: Jan 2006
Posts: 64
Why don't u use CTCP instead of PRIVMSG. crazy For example ctcp LAG which carries $ticks as parameter.

Re: lagchecker #144434 10/03/06 11:01 AM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
give me example pls?

also, wouldnt sending ctcp's also break idle time function?


IceCapped
Re: lagchecker #144435 10/03/06 11:04 AM
Joined: Jan 2006
Posts: 64
S
SoundreameR Offline
Babel fish
Offline
Babel fish
S
Joined: Jan 2006
Posts: 64
here it is...
Code:
alias lagcheck {
  if ($server) {
    .!ctcp $me LAG $ticks 
  } 
}
ctcp *:LAG:*:if ($cid == $activecid) { redraw_value $calc(($ticks - $2) / 1000) } | halt
on *:connect:{
  lagcheck
  .timerlag 0 10 lagcheck
}
on *:disconnect:{
  .timerlag off
  init_lag_face
}

But I'm afraid it will also reset idle timer... crazy

Re: lagchecker #144436 10/03/06 11:11 AM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
well, thats the problem =)

i want to know if there is a way of NOT breaking the
idle time timer.

but thanks for trying to help =)


IceCapped
Re: lagchecker #144437 10/03/06 12:07 PM
Joined: Feb 2006
Posts: 164
V
vexed Offline
Vogon poet
Offline
Vogon poet
V
Joined: Feb 2006
Posts: 164
have you tried..

scid $activecid .raw -q ping $ticks

Re: lagchecker #144438 10/03/06 02:11 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
it still resets time smirk


IceCapped
Re: lagchecker #144439 10/03/06 02:41 PM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Try sending an invalid command to the server.

Seems to me I already posted this one..........

Code:
on *:CONNECT:{ titlebar | $+(.timer.lag.,$cid) 1 10  $!+ $!ticks | $+(timer.lag.,$cid) -e }
on *:DISCONNECT:$+(.timer.lag.,$cid) off
on me:*:NICK:$+(timer.lag.,$cid) 1 10  $!+ $!ticks
raw 421:& *:{ titlebar LAG: $calc(($ticks - $right($2,-1)) / 1000) $+ s | $+(.timer.lag.,$cid) 1 10  $!+ $!ticks | halt }


-genius_at_work

Re: lagchecker #144440 10/03/06 02:48 PM
Joined: Feb 2006
Posts: 164
V
vexed Offline
Vogon poet
Offline
Vogon poet
V
Joined: Feb 2006
Posts: 164
Very odd, i use an idle checker and check lag, it doesn't reset my idle time or mess my idle away system up.

and why not use the on ^*:PONG: { event to retrieve the lag time?

Last edited by vexed; 10/03/06 02:50 PM.
Re: lagchecker #144441 10/03/06 04:58 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
yeah, i made it to work =)

(actually someone helped me heheh)

thanks guys for help


IceCapped