Info Center

By Protheus on Dec 18, 2011

Screenshots

Info Center. Gives some useful stats for the active channel like How many people are on. Of those people, how many are Ops? etc. When it's open, you can switch to another channel and InfoCenter will update to reflect that channel. Needs some work. Enjoy.

;Put the following in aliases;
xdc return xdialog -c $dname
blk return xdialog -g $dname +b $rgb(0,0,0)

alias iCen {
  if ($dialog(iCen)) { dialog -x iCen }
  dialog -m iCen iCen
}

alias DCX_iCen {
}

dialog iCen {
  title "Info Central"
  size -1 -1 200 200
  option dbu
}
on *:dialog:iCen:init:*: {
  dcx Mark $dname iCen_cb
  $blk
  $xdc 1 list 28 28 342 100 nosel
  xdid -f $dname 1 +a ansi 10 Times New Roman
  xdid -C $dname 1 +t $color(3) 
  xdid -C $dname 1 +b $color(1)
  xdid -a iCen 1 1 Stats for $active $+ : 
  xdid -a iCen 1 2 There are $nick($active,0) total users. 
  xdid -a iCen 1 3 $nick($active,0,o) users are Ops.
  xdid -a iCen 1 4 $nick($active,0,v) users are Voiced.
  xdid -a iCen 1 5 $nick($active,0,r) are normal users.
  xdid -a iCen 1 6 Modes $chan($active).mode are in effect on $active $+ .
  $xdc 2 list 28 158 342 100 nosel
  xdid -f $dname 2 +a ansi 10 Times New Roman
  xdid -C $dname 2 +t $color(3) 
  xdid -C $dname 2 +b $color(1)
  xdid -a $dname 2 1 The Current Date is: $day $+ , $date(mmmm dd yyyy)
  xdid -a iCen 2 2 The Current time is: $time(hh:nn:ss TT) | .timericen -c 0 1 xdid -o iCen 2 2 The Current time is: $!time(hh:nn:ss TT)
  xdid -a iCen 2 3 Currently on Server: $iif($scid($activecid).server,$scid($activecid).server,Not Connected))
  xdid -a iCen 2 4 Using Nick: $me
  xdid -a iCen 2 5 Currently on $chan(0) channels.
  xdid -a iCen 2 6 You are currently $iif($away,Away ( $+ $awaymsg $+ ) ,Not Away) $+ . 
  $xdc 3 button 158 278 82 26
  xdid -t $dname 3 Close
  $xdc 18 text 336 357 64 12 transparent
  xdid -t iCen 18 3ProSec iRc
}

alias iCen_cb {
  if ($2 == sclick) && ($3 == 3) {
    .timericen off
    .timeriway off
    dialog -x icen
  }
}

on *:ACTIVE:*: {
  if ($dialog(iCen)) {
    xdid -o iCen 1 1 Stats for $active $+ : 
    xdid -o iCen 1 2 There are $nick($active,0) total users. 
    xdid -o iCen 1 3 $nick($active,0,o) users are Ops.
    xdid -o iCen 1 4 $nick($active,0,v) users are Voiced.
    xdid -o iCen 1 5 $nick($active,0,r) are normal users.
    xdid -o iCen 1 6 Modes $chan($active).mode are in effect on $active $+ .
    xdid -o iCen 2 3 Currently on Server: $iif($scid($activecid).server,$scid($activecid).server,Not Connected))
    xdid -o iCen 2 4 Using Nick: $me
    xdid -o iCen 2 5 Currently on $chan(0) channels.
  }
}

Comments

Sign in to comment.
Protheus   -  Aug 17, 2015

I need to update this thing...

 Respond  
Jethro   -  Dec 20, 2011

Calmez vous les gens lol

 Respond  
WorldDMT   -  Dec 20, 2011

I said that was my opinion
Moreover if it's matter of color there is a way without dll like /window

 Respond  
IllogicTC   -  Dec 19, 2011

The big boon in this is the ability to have colours other than the defaults in mIRC's built-in dialog system. It matches the rest of this theme as it sits right now, but anyone chould change the colours to anything to suit their wants/needs.

 Respond  
WorldDMT   -  Dec 19, 2011

so what?
if he uses often DCX for his dialogs this doesnt justify the need to use a big dll for a small code like this one
btw it is my opinion

 Respond  
Protheus   -  Dec 19, 2011

Thanks guys.

 Respond  
Sorasyn   -  Dec 18, 2011

Yeah, most, if not all, of his submissions have been DCX related. Looks good Pro,

 Respond  
IllogicTC   -  Dec 18, 2011

@WorldDMT: Prosec does lots of dialogs in DCX. It's like... his thing I guess? He's so used to it.

 Respond  
WorldDMT   -  Dec 18, 2011

hi
the same result can be given in a few lines maybe only one but
using the DCX.dll on this code is exaggerated

 Respond  
Lenooox   -  Dec 18, 2011

ahh where can i found it? :$

 Respond  
Spoof   -  Dec 18, 2011

Nice job.
This coding can come in handy for making customized themes for mIRC versions.

 Respond  
IllogicTC   -  Dec 18, 2011

Do you have the script dcxtools.mrc loaded? Does it point correctly to the DCX DLL?

 Respond  
Lenooox   -  Dec 18, 2011

i have that , but i got this error... :S
[link]http://oi43.tinypic.com/10r6ct2.jpg[/link]

 Respond  
Protheus   -  Dec 18, 2011

Need Dcx.dll

 Respond  
Lenooox   -  Dec 18, 2011

XDID Unknown command

 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.