Channel Timer Clear

By DeathfireD on Jun 01, 2004

This is a small Timer that will clear the Active channel window your looking at. All you have to do is load in remotes right mouse click in channel and hit timer clear then a dialog will show up you type in the time you want it to clear (its in seconds so 1 = 1sec) then click on. to shut it off press off. This is just something I made fast so when my dad walked in my room and i wasent there it would clear my screen for me. (we all know people say bad things when your gone ;) ) have fun with it.

menu channel {
  .Timer Clear:/timerclear
  -
}
dialog timerclear {
  title "Clear Timer"
  size -1 -1 73 25
  option dbu
  edit "", 1, 2 8 26 10
  box "Clear timer", 2, 0 0 73 22
  button "On", 3, 31 9 18 7
  button "Off", 4, 52 9 18 7
}
alias timerclear { dialog -md timerclear timerclear }

on *:dialog:timerclear:sclick:*:{
  if $did == 3 { /timer1 0 %timerclear1 /clear $active }
  if $did == 4 { /timer1 off }
}
on *:dialog:timerclear:edit:*:{
  if $did == 1 { set %timerclear1 $did(1) }
}
on *:dialog:timerclear:init:0:{ did -a timerclear 1 %timerclear1 }
}

Comments

Sign in to comment.
kINTAR0   -  Jan 26, 2007

sorry... it should actually look like
menu channel {
.Timer Clear:/timerclear

}
{ <<that was missing
dialog timerclear {
title \"Clear Timer\"

tho it gets rid of the error and the script doesn\'t freak out, i still cant get it to do anything : | there is no popup box to enter in the time it also works differently if using polaris\'s version of mirc and regular mirc

 Respond  
kINTAR0   -  Jan 26, 2007

the problem is an extra bracket right

menu channel {
.Timer Clear:/timerclear

} <<<---- here, onece it\'s removed, the script works fine..so thank you DeathfireD for the snip ^^

 Respond  
DeathfireD   -  Jun 07, 2004

hmmm Thats weird It should work fine Please save it as a .mrc or .txt file. I dont see why your getting that error all you have to do is load it and type in say 12 and hit on then exit out of it, then to shut it off press off and exit out of it.

 Respond  
SL   -  Jun 06, 2004
  • /dialog: \'timerclear\' invalid table, no ok or cancel id (line 14, script5.slb)
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.