mIRC Home    About    Download    Register    News    Help

Print Thread
Closing a window, 10 seconds after first message #35236 09/07/03 10:46 PM
Joined: Dec 2002
Posts: 83
A
acemiles_ed Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Dec 2002
Posts: 83
I want to have the window close 10 seconds after the first message. I don't really care if they message again 11 seconds later and reopen it.

Here is what I have so far, but the if statement doesn't seem to be working
Code:
on *:TEXT:*:?:{
  if (%closer- $+ $nick !== 1) {
    /timer 1 10 /window -c $nick
    set -u10 %closer- $+ $nick 1
  }
}

Re: Closing a window, 10 seconds after first message #35237 09/07/03 10:51 PM
Joined: Apr 2003
Posts: 300
A
andymps Offline
Fjord artisan
Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
try /close -m $nick
instead of the window bit

Last edited by andymps; 09/07/03 10:51 PM.

Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
Re: Closing a window, 10 seconds after first message #35238 09/07/03 10:51 PM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Code:
on *:TEXT:*:?:{  
   if (%closer- [ $+ [ $nick ] ]  != 1) {  
      /timer 1 10 /window -c $nick    
      set -u10 %closer- $+ $nick 1  
   }
}


Try that.

Re: Closing a window, 10 seconds after first message #35239 09/07/03 10:54 PM
Joined: Dec 2002
Posts: 83
A
acemiles_ed Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Dec 2002
Posts: 83
Ah yes, thank you codemastr, that worked like a charm.

One other question, how do I prevent mIRC from displaying
Code:
- Timer 1 Activated
- Timer 1 Halted

Re: Closing a window, 10 seconds after first message #35240 09/07/03 10:55 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Use .timer

Re: Closing a window, 10 seconds after first message #35241 09/07/03 10:55 PM
Joined: Apr 2003
Posts: 300
A
andymps Offline
Fjord artisan
Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
/.timer 1 10... etc


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11