mIRC Home    About    Download    Register    News    Help

Print Thread
closing dialog with timer #149701 22/05/06 01:34 PM
Joined: Jan 2004
Posts: 129
A
AaronL Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Jan 2004
Posts: 129
hi all.

As the title suggests, i like to close a dialog with a timer.
this must happen after pressing a button like:

Code:
on *:dialog:listmaster:sclick:*:{
if ($did == 100) { doe something | wait until time is reached | close dialog } }


Greetz
Aaron


Deridio fatum
Re: closing dialog with timer #149702 22/05/06 04:29 PM
Joined: Aug 2005
Posts: 525
S
schaefer31 Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
/.timername <i> <d> <c>

name - Whatever you care to name the timer, avoid using numbers for names as some of those are reserved. There is no space between the name and the word timer.

<i> - The number of intervals, for this case you only need 1.
<d> - The delay time or time to wait between intervals.
<c> - The command to execute on each interval.

As an example to your question:

/.timerCloseIt 1 10 dialog -x listmaster

This starts a timer named CloseIt that, after a single interval of 10 seconds will close the dialog and stop.

Re: closing dialog with timer #149703 22/05/06 05:42 PM
Joined: Jan 2004
Posts: 129
A
AaronL Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Jan 2004
Posts: 129
thanxs Schaefer31

so easy that i overlooked it blush

Greetz
Aaron


Deridio fatum