mIRC Home    About    Download    Register    News    Help

Print Thread
#176431 09/05/07 09:19 PM
Joined: Dec 2006
Posts: 31
Y
yetti Offline OP
Ameglian cow
OP Offline
Ameglian cow
Y
Joined: Dec 2006
Posts: 31
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.

yetti #176441 10/05/07 12:48 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net
Riamus2 #176456 10/05/07 03:32 AM
Joined: Dec 2006
Posts: 31
Y
yetti Offline OP
Ameglian cow
OP Offline
Ameglian cow
Y
Joined: Dec 2006
Posts: 31
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.


yetti #176458 10/05/07 03:50 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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
Joined: Dec 2006
Posts: 31
Y
yetti Offline OP
Ameglian cow
OP Offline
Ameglian cow
Y
Joined: Dec 2006
Posts: 31
thank you!


Link Copied to Clipboard