mIRC Home    About    Download    Register    News    Help

Print Thread
#188103 17/10/07 11:00 PM
Joined: May 2004
Posts: 49
G
GalaxeY Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
Joined: May 2004
Posts: 49
I tried to search for anything familiar, but could find any so here goes.

Code:
on *:START:{ .timer 0 1 /titlebar $time(HH:nn:ss) }


Now, this doesnt update as it should. Why?`When I take .timer 0 1 /titlebar $time(HH:nn:ss) when I'm in IRC completly, its doing fine, but not on start. any idea on how to fix that?


Signature:
I'm boring, ain't I? Oh well...:|
Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
mIRC isn't connected yet, it's "offline". So, use an Offline Timer:

Code:
ON *:START: { .timer -o 0 1 titlebar $time(HH:nn:ss) }

Nice 'n simple.

Joined: May 2004
Posts: 49
G
GalaxeY Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
Joined: May 2004
Posts: 49
ON *:START: { .timer -o 0 1 titlebar $!time(HH:nn:ss) }

would that do any different?

Last edited by GalaxeY; 17/10/07 11:12 PM.

Signature:
I'm boring, ain't I? Oh well...:|
Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
Heh, yeah. It'd probably do what you're after. The line I gave above would evaluate in the ON START event, and not update the time, even though it would update the titlebar every second. The ! forces the re-evaluation of the identifier every time the timer triggers.

Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Code:
ON *:START:{ .timer 0 1 titlebar $!time(HH:nn:ss) }


> would that do any different?
Yes. smile

There's no need to use the -o switch though...
Originally Posted By: /help /timer
If you are not connected to a server and you start a timer, it defaults to being an offline timer which means it will continue to run whether you are connected to a server or not.


Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
Also you should use the -i switch if you want the timer to continue running if the first connection is closed.

Last edited by RoCk; 18/10/07 09:27 PM.

Link Copied to Clipboard