root_sys-iRC Switchbar

By Aurora801 on Oct 03, 2009

Load into Remotes.
put hOS.dll and mdx.dll into a DLL folder in your IRC.
Get them from: http://sites.google.com/site/psychosocial801/file_cab

alias mdx { return dll\mdx.dll }
alias moo { return dll\moo.dll }
alias views { return dll\views.mdx }
alias bars { return dll\bars.mdx }
alias ctl { return dll\ctl_gen.mdx }
alias dmdx { return dll\dialog.mdx }
alias views { return dll\views.mdx }
alias mdxin { dll $mdx SetMircVersion $version | dll $mdx MarkDialog $dname }
alias popupsd { return dll\POPUPS.DLL }

alias switch { dialog -mh switchbar switchbar }
alias refresh { .timer -m 1 20 switchbar }
dialog switchbar {
  title "switchbar"
  size -1 -1 76 324
  option dbu
  list 1, 1 1 74 321, sort size
}

on *:START: { switch }

alias switchreload {
  dialog -x switchbar
  switch
}
on *:dialog:switchbar:*:*:{
  if ($devent == init) {
    $mdxin
    dll $mdx SetDialog $dname style
    dll $mdx SetControlMDX $dname 1 TreeView haslines hasbuttons showsel rowselect insertdroptarget > $views
    did -i $dname 1 1 SetColor bkg  $color(1)
    did -i $dname 1 1 SetColor line $color(14)
    did -i $dname 1 1 SetColor text $color(15)
    dll $hos Dock $dname Left -1
    $switchbar
  }
  if ($devent == sclick) {
    if ($did == 1) {
      tokenize 32 $did(1,1,1)
      if ($3 == unknown) halt
      if ($4 >= 2) && (!$5-) {
        scon $calc($4 - 1)
        window -a "Status Window"
      }
      if ($4 >= 2) && ($5 == 2) && (!$6) {
        scon $calc($4 - 1)
        if ($server) list
      }
      if ($4 >= 2) && ($5 == 2) && ($6) {
        scon $calc($4 - 1)
        var %chan = $chan($calc($6 - 1))
        window -a %chan
      }
      if ($4 >= 2) && ($5 == 3) && ($6) {
        scon $calc($4 - 1)
        var %query = $query($calc($6 - 1))
        window -a %query
      }
      if ($4 >= 2) && ($5 == 4) && ($6) {
        scon $calc($4 - 1)
        var %window = $window($calc($6 - 1))
        window -a %window
      }
      if ($4 >= 2) && ($5 == 5) && ($6 == 2) && ($7) {
        scon $calc($4 - 1)
        var %send = $send($calc($7 - 1))
        window -a %send
      }
      if ($4 >= 2) && ($5 == 5) && ($6 == 3) && ($7) {
        scon $calc($4 - 1)
        var %get = $get($calc($7 - 1))
        window -a %get
      }
      if ($4 >= 2) && ($5 == 5) && ($6 == 4) && ($7) {
        scon $calc($4 - 1)
        var %chat = $chat($calc($7 - 1))
        window -a %chat
      }
    }
  }
}
alias switchbar { 
  did -r switchbar 1
  did -i switchbar 1 1 iconsize normal small
  did -i switchbar 1 1 seticon normal icons/connect.ico
  did -i switchbar 1 1 seticon normal icons/chan.ico
  did -i switchbar 1 1 seticon normal icons/userlist2.ico
  did -i switchbar 1 1 seticon normal icons/chan2.ico
  did -i switchbar 1 1 seticon normal icons/dcc.ico
  did -i switchbar 1 1 seticon normal icons/disconnect.ico
  did -i switchbar 1 1 seticon normal icons/about.ico
  var %a = 1
  while (%a <= $scid(0)) {
    scon %a
    did -i switchbar 1 1 cb root
    if ($server) did -a switchbar 1 +eb 1 1 $server
    if (!$server) did -a switchbar 1 +eb 6 1 Not connected.
    did -i switchbar 1 1 cb last
    did -i switchbar 1 1 cb last
    did -a switchbar 1 +e 2 2 Channels
    did -i switchbar 1 1 cb last
    var %c = 1
    while (%c <= $chan(0)) {
      if (%Notify. [ $+ [ $+($server $+ $chan(%c)) ] ] != On) did -a switchbar 1 +eu 2 2 $chan(%c)
      if (%Notify. [ $+ [ $+($server $+ $chan(%c)) ] ] == On) did -a switchbar 1 +eu 2 2 ! $+ $chan(%c)
      inc %c
    }
    did -i switchbar 1 1 cb up
    did -a switchbar 1 +e 3 3 Queries
    did -i switchbar 1 1 cb last
    var %q = 1
    while (%q <= $query(0)) {
      if (%Notify. [ $+ [ $+($server $+ $query(%q)) ] ] != On) did -a switchbar 1 +eu 3 3 $query(%q)
      if (%Notify. [ $+ [ $+($server $+ $query(%q)) ] ] == On) did -a switchbar 1 +eu 3 3 ! $+ $query(%q)
      inc %q

    }
    inc %a
  }
; did -i switchbar 1 1 cb root
; did -a switchbar 1 +e 4 4 Windows
; did -i switchbar 1 1 cb last
; var %w = 1
; if ($window(0) > 0) {
;  while (%w <= $window(0)) {
;   did -a switchbar 1 +eu 4 4 $window(%w)
;   inc %w
;  }
; }
}
on *:ACTIVE:*:{
  if ($activecid != $lactivecid) && ($lactive) {
    nbar
  }
  if ($lactive) {
    if (%Notify. [ $+ [ $+($server $+ $active) ] ] == On) unset %Notify. [ $+ [ $+($server $+ $active) ] ]
    switchbar 
  }
}
on *:CONNECT:{ .timer 1 1 refresh }
on *:DISCONNECT:{ refresh }
on *:CLOSE:*:{ refresh }
on *:TEXT:*:#:{ 
  if ($active != $chan) && (%Notify. [ $+ [ $+($server $+ $chan) ] ] != On) {
    set %Notify. [ $+ [ $+($server $+ $chan) ] ] On
    switchbar
  }
}
on *:ACTION:#:{ 
  if ($active != $chan) && (%Notify. [ $+ [ $+($server $+ $chan) ] ] != On) {
    set %Notify. [ $+ [ $+($server $+ $chan) ] ] On
    switchbar
  }
}
on *:RAWMODE:#:{ 
  if ($active != $chan) && (%Notify. [ $+ [ $+($server $+ $chan) ] ] != On) {
    set %Notify. [ $+ [ $+($server $+ $chan) ] ] On
    switchbar
  }
}
on *:JOIN:#:{ 
  if ($active != $chan) && (%Notify. [ $+ [ $+($server $+ $chan) ] ] != On) {
    set %Notify. [ $+ [ $+($server $+ $chan) ] ] On
    switchbar
  }
}
on *:TEXT:*:?:{ 
  if ($active != $nick) && (%Notify. [ $+ [ $+($server $+ $chan) ] ] != On) {
    set %Notify. [ $+ [ $+($server $+ $nick) ] ] On
    switchbar
  }
}
on *:ACTION:?:{ 
  if ($active != $nick) && (%Notify. [ $+ [ $+($server $+ $chan) ] ] != On) {
    set %Notify. [ $+ [ $+($server $+ $nick) ] ] On
    switchbar
  }
}

Comments

Sign in to comment.
BigSteve   -  Apr 12, 2011

guess no one knows -.-

 Respond  
BigSteve   -  Apr 11, 2011

I have the @window bit but cant workout how to get it to reopen the windows when they are minimized without minimizing all also when I click on the @window to open it I get * No such connection id: 2

 Respond  
BigSteve   -  Apr 11, 2011

question how would I get it so @ windows open on it aswell

 Respond  
Cracker200   -  Oct 09, 2009

oh but when i load it says cannot load dll' blah blah lol

 Respond  
sunslayer   -  Oct 08, 2009

i meant that you do need them

 Respond  
Cracker200   -  Oct 08, 2009

@ >> SunSlayer << Hm, and how would. You do it with out the Dll's ?

 Respond  
sunslayer   -  Oct 07, 2009

no Cracker, atleast not to my knowledge

 Respond  
Cracker200   -  Oct 07, 2009

k, But i ment do you Have to Use Dll's can't you do it so they don't have to use dll's?

 Respond  
Aurora801   -  Oct 07, 2009

Yes. You do. I've got them on my site. http://sites.google.com/site/psychosocial801/file_cab

 Respond  
Cracker200   -  Oct 07, 2009

and It's nice but do ya have to use the dll's?

 Respond  
Cracker200   -  Oct 07, 2009

this is what Sohosoha said
All Be-Ez range available now: http://prod.maceria.com/shop/product/Beez-La-Besace-13-Lime-Drop-gris-lime-Mac .. Info for a mac-generation

 Respond  
sohosoha   -  Oct 07, 2009

Toute la gamme Be-Ez dispo maintenant sur : http://prod.maceria.com/shop/product/Beez-La-Besace-13-Lime-Drop-gris-lime-Mac .. une info pour la mac-génération

 Respond  
Aurora801   -  Oct 06, 2009

It's in my images. root_sys-iRC
Image

 Respond  
Cracker200   -  Oct 03, 2009

Can you take a Screen shot and show us what it looks like please? thanks that would be alot off help ;)

 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.