mIRC Home    About    Download    Register    News    Help

Print Thread
Closing a window, 10 seconds after first message #35236
09/07/03 10:46 PM
09/07/03 10:46 PM
Joined: Dec 2002
Posts: 83
Houston, TX
A
acemiles_ed Offline OP
Babel fish
acemiles_ed  Offline OP
Babel fish
A

Joined: Dec 2002
Posts: 83
Houston, TX
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
09/07/03 10:51 PM
Joined: Apr 2003
Posts: 300
England,Uk
A
andymps Offline
Fjord artisan
andymps  Offline
Fjord artisan
A

Joined: Apr 2003
Posts: 300
England,Uk
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
09/07/03 10:51 PM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
codemastr  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
09/07/03 10:54 PM
Joined: Dec 2002
Posts: 83
Houston, TX
A
acemiles_ed Offline OP
Babel fish
acemiles_ed  Offline OP
Babel fish
A

Joined: Dec 2002
Posts: 83
Houston, TX
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
09/07/03 10:55 PM
Joined: Dec 2002
Posts: 3,138
London, UK
C
Collective Offline
Hoopy frood
Collective  Offline
Hoopy frood
C

Joined: Dec 2002
Posts: 3,138
London, UK
Use .timer

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

Joined: Apr 2003
Posts: 300
England,Uk
/.timer 1 10... etc


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11