Search
 
 

Display results as :
 


Rechercher Advanced Search

Web Applications
install Joomla Wordpress Phpbb Drupal FluxBB PunBB osCommerce simple-machines MYBB moodle vBulletin Dolphin-v.7.1.1 PHPNUKE XOOPS
Services
install BorkNet Services X3 Services Anope Atheme Services Srvx IRC Srervices
IRCD
install Snircd IRCU INSPIRCD UNREAL Nefarious Bircd Bahamut Asuka Charybdis
TCL SCRIPT
TCL SCRIPT FOR EGGDROP Allprotection4.7 Antiproxy
Bots
Bots install FishBot bobot++ Eggdrop janus Omega Security Services Botnix Bopm
Keywords

Latest topics
September 2017
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
252627282930 

Calendar Calendar

Affiliates
free forum

Affiliates
free forum


channel,status

View previous topic View next topic Go down

channel,status

Post  Admin on Tue Apr 17, 2012 11:18 pm

Code:

menu channel,status {
  .$iif($server, Channel Show/Hide) :winhide
}
alias winhide { dialog $iif($dialog(winhide), -v, -m) winhide winhide }
 
dialog winhide {
  title "Hide/Show Windows"
  size -1 -1 160 82
  option dbu
  menu "&More" 1000
  item "&Refresh", 2000
  box "Visible", 1, 3 1 68 79
  list 2, 8 10 58 70, sort autovs check
  box "Hidden", 3, 91 1 68 79
  list 4, 96 10 58 70, sort autovs check
  button ">", 5, 74 18 15 15, flat
  button ">>", 7, 74 58 15 10, flat
  button "<<", 8, 74 70 15 10, flat
  text "One Item", 9, 73 3 15 15, center
  text "All Items", 10, 73 43 15 15, center
}
on *:dialog:winhide:*:*: {
  if ($devent == init) { ch.load | dialog -t $dname Hide/Show Windows for $network }
  if ($devent == menu) { if ($did == 2000) { dialog -x winhide | dialog -mh winhide winhide } }
  if ($devent == close) {
    if ($exists(HideView.txt)) { .remove HideView.txt }
    if ($exists(HideViewC.txt)) { .remove HideViewC.txt }
    if ($exists(HideViewCC.txt)) { .remove HideViewCC.txt }
    if ($exists(HideViewCQ.txt)) { .remove HideViewCQ.txt }
  }
  if ($devent == dclick) {
    if ($did == 2) {
      if ($window($did(2).seltext).type = channel) { join $did(2).seltext | goto next1 }
      if ($window($did(2).seltext).type = custom) { window -a $did(2).seltext | goto next1 }
      if ($window($did(2).seltext).type = query) { window -a $did(2).seltext | goto next1 }
      :next1
      ch.load 
    }
    if ($did == 4) {
      if ($window($did(4).seltext).type = channel) { join $did(4).seltext | goto next2 }
      if ($window($did(4).seltext).type = custom) { window -a $did(4).seltext | goto next2 }
      if ($window($did(4).seltext).type = query) { window -a $did(4).seltext | goto next2 }
      :next2
      ch.load
    }
  }
  if ($devent == sclick) {
    if ($did == 2) {
      if ($did(2,$did(2).sel).cstate == 1) { write HideView.txt $did(2).seltext }
      if ($did(2,$did(2).sel).cstate == 0) { write -ds $+ $did(2).seltext HideView.txt }
      did -u $dname 4
      did -a $dname 5 >
    }
    if ($did == 4) {
      if ($did(4).seltext) {
        if ($window($did(4).seltext).type = channel) {
          if ($did(4,$did(4).sel).cstate == 1) { write HideViewC.txt $did(4).seltext }
          if ($did(4,$did(4).sel).cstate == 0) { write -ds $+ $did(4).seltext HideViewC.txt }
        }
        if ($window($did(4).seltext).type = custom) {
          if ($did(4,$did(4).sel).cstate == 1) { write HideViewCC.txt $did(4).seltext }
          if ($did(4,$did(4).sel).cstate == 0) { write -ds $+ $did(4).seltext HideViewCC.txt }
        }
        if ($window($did(4).seltext).type = query) {
          if ($did(4,$did(4).sel).cstate == 1) { write HideViewCQ.txt $did(4).seltext }
          if ($did(4,$did(4).sel).cstate == 0) { write -ds $+ $did(4).seltext HideViewCQ.txt }
        }
      }
      did -u $dname 2
      did -a $dname 5 <
    }
    if ($did == 5) {
      if ($did(5) == >) {
        if ($exists(HideView.txt)) {
          var %i 1
          while (%i <= $lines(HideView.txt)) {
            window -h $read(HideView.txt,%i)
            inc %i
          }
          ch.load
        }
      }
      if ($did(5) == <) { 
        var %i 1
        while (%i <= $chan(0)) {
          if ($window($chan($read(HideViewC.txt,%i))).state == hidden) { window -wr $read(HideViewC.txt,%i) }
          inc %i
        }
        var %i 1
        while (%i <= $window(0)) {
          if ($window($window($read(HideViewCC.txt,%i))).state == hidden) { window -nw(0) $read(HideViewCC.txt,%i) }
          inc %i
        }
        var %i 1
        while (%i <= $query(0)) {
          if ($window($query($read(HideViewCQ.txt,%i))).state == hidden) { window -nw(0) $read(HideViewCQ.txt,%i) }
          inc %i
        }
        ch.load 
      }
    }
    if ($did == 7) {
      did -r winhide 2,4
      var %i 1
      while (%i <= $chan(0)) {
        if ($window($chan(%i)).state != hidden) { window -h $chan(%i) }
        inc %i
      }
      var %i 1
      while (%i <= $window(0)) {
        if ($window($window(%i)).state != hidden) { window -h $window(%i) }
        inc %i
      }
      var %i 1
      while (%i <= $query(0)) {
        if ($window($query(%i)).state != hidden) { window -h $query(%i) }
        inc %i
      }
      ch.load
    }
    if ($did == 8) {
      did -r winhide 2,4
      var %i 1
      while (%i <= $chan(0)) {
        if ($window($chan(%i)).state == hidden) { window -wr $chan(%i) }
        inc %i
      }
      var %i 1
      while (%i <= $window(0)) {
        if ($window($window(%i)).state == hidden) { window -nw(0) $window(%i) }
        inc %i
      }
      var %i 1
      while (%i <= $query(0)) {
        if ($window($query(%i)).state == hidden) { window -nw(0) $query(%i) }
        inc %i
      }
      ch.load
    }
  }
}
alias ch.load {
  if ($exists(HideView.txt)) { .remove HideView.txt }
  if ($exists(HideViewC.txt)) { .remove HideViewC.txt }
  if ($exists(HideViewCC.txt)) { .remove HideViewCC.txt }
  if ($exists(HideViewCQ.txt)) { .remove HideViewCQ.txt }
  did -r winhide 2,4
  var %i 1
  while (%i <= $chan(0)) {
    $iif($window($chan(%i)).state == hidden, did -a winhide 4 $chan(%i), did -a winhide 2 $chan(%i))
    inc %i
  }
  var %i 1
  while (%i <= $window(0)) {
    $iif($window($window(%i)).state == hidden, did -a winhide 4 $window(%i), did -a winhide 2 $window(%i))
    inc %i
  }
  var %i 1
  while (%i <= $query(0)) {
    $iif($window($query(%i)).state == hidden, did -a winhide 4 $query(%i), did -a winhide 2 $query(%i))
    inc %i
  }
}
 
 
 
on *:action:*:#: {
  if ($window($chan).state == hidden) { window -wr $chan | if ($dialog(winhide)) { ch.load } }
}
on *:action:*:?: {
  if ($window($($query($nick),3)).state == hidden) { window -wr $($query($nick),3) | if ($dialog(winhide)) { ch.load } }
}
on *:notice:*:#: {
  if ($window($chan).state == hidden) { window -wr $chan | if ($dialog(winhide)) { ch.load } }
}
on *:notice:*:?: {
  if ($window($($query($nick),3)).state == hidden) { window -wr $($query($nick),3) | if ($dialog(winhide)) { ch.load } }
}
on *:text:*:#: {
  if ($window($chan($active)).state == hidden) { window -wr $chan | if ($dialog(winhide)) { ch.load } ) }
}
on *:text:*:?: { 
  if ($window($($query($nick),3)).state == hidden) { window -wr $($query($nick),3) | if ($dialog(winhide)) { ch.load } }
}
avatar
Admin
Admin

מספר הודעות : 285
Join date : 2009-09-12
Age : 37
מיקום : mIRCX IRC Network

View user profile http://mircx.forumotion.net

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum