mIRC Home    About    Download    Register    News    Help

Print Thread
#176431 09/05/07 09:19 PM
Y
yetti
yetti
Y
Is is possible to make a script that will close all Private Messages (querys) if no one said anything for "X" seconds?

Can anyone help me with this please?

Thanks.

#176441 10/05/07 12:48 AM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
I think you need to be more specific. From your post, it says you want to close all queries if no one talks. No one talks where? In the specific query window? In any query window? In all queries and channels? What about if you talk?

Basically, it just needs a timer and a /close command.

Riamus2 #176456 10/05/07 03:32 AM
Y
yetti
yetti
Y
If in a query window no one says anything for "X" seconds that window closes.
Quote:
No one talks where?

-in that specific query
Quote:
In any query window?

-no in a specific query. treat each window separate.
Quote:
In all queries and channels?

-no channels. just queries, but independent.
Quote:
What about if you talk?

-then the timer, or whatever will close the window is reset for the window I talked in.


#176458 10/05/07 03:50 AM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Code:
on *:text:*:?:{
  $+(.timer,pm,$nick) 1 60 close -m $nick
}

Waits for 60 seconds after the last message was received then closes the query/pm window

Change 60 to the number of seconds you want it to wait

RusselB #176459 10/05/07 04:07 AM
Y
yetti
yetti
Y
thank you!


Link Copied to Clipboard