mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline OP
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Hi, can anyone help me set up a pop-up edit box to change the time for my departure? In other words, I would like being able to set a different time when I trigger the alias. Many thanks in advance.

Code:
alias parting {
  timerP 11:00 1 1 partall
}


P.S. Is it possible to add a parting message so others know the reason for my leaving?

Last edited by Tomao; 22/07/07 06:28 PM.
Joined: Mar 2006
Posts: 47
C
Ameglian cow
Offline
Ameglian cow
C
Joined: Mar 2006
Posts: 47
?

Code:
alias parting {
  var %i = 1
  while (%i <= $chan(0)) {
    .timer $1 1 1 /part $chan(%i) $2-
    inc %i
  }
  halt
}

Last edited by CitizenKane; 22/07/07 06:39 PM.
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline OP
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Thanks Kane for the code, but what I want is to be able to change the time via a custom popup menu. It's kind of like making a $$?="Enter Time " and the time change takes effect.

Last edited by Tomao; 22/07/07 06:49 PM.
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
menu status {
  Part All: {
    set %t $$?="Set time in hour:minute format $crlf $+ Example 12:30, 00:30 or 0:30"
    $iif(($gettok(%t,1,58) <= 24) && ($gettok(%t,2,58) <= 60),parting,unset %t)
  }
}

alias parting {
  timerP %t 1 1 partall Some Message Here
} 

Joined: Jul 2007
Posts: 1,129
T
Tomao Offline OP
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Thank you so much! laugh


Link Copied to Clipboard