Socket Status Addon For Mirc

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > Others

Socket Status Addon For Mirc

imacul8
This addon will display the status of your open sockets (if there is any)

Displays displays the Name, IP, Port, Status - Bytes sent/received & last Sent/recieved
Has options to refresh the status, close a socket and close all sockets.

Copy and paste this code below into your remotes (alt + r)
To run the dialog u can simply type /sockstats or u can add a popup to your menubar or wherever to open it.

ie. &Socket Status:/sockstats in your status popup section (alt + p)

**IF you have no active sockets it wont open the dialog, it will just return no open sockets in your active window.

CODE
alias sockstats { if ($sock(*,1)) {
    if ($dialog(sockstats) == $null) {
      dialog -m sockstats sockstats
    }
  }
  else echo -a 12¯ There is currently no Active mIRC sockets
}

dialog sockstats {
  title "(D)Socket Status"
  size -1 -1 182 84
  option dbu
  box "", 1, -5 -3 200 4
  box "", 2, -3 -2 200 4
  box "", 3, -3 68 200 4
  list 4, 0 3 41 67, sort size
  box "", 100, 42 1 139 44
  text "Name :", 5, 45 7 19 8
  text "IP :", 6, 45 16 19 8
  text "Port :", 7, 45 25 19 8
  text "Status :", 8, 45 34 19 8
  text "", 9, 68 7 109 8
  text "", 10, 68 16 109 8
  text "", 11, 68 25 109 8
  text "", 12, 68 34 109 8
  box "", 13, 42 41 70 28
  text "Bytes Sent :", 14, 45 47 30 8
  text "Last Sent :", 15, 45 56 30 8
  box "", 16, 111 41 70 28
  text "Bytes Rcvd:", 17, 114 47 30 8
  text "Last Rcvd:", 18, 114 56 27 8
  text "", 19, 76 47 33 8
  text "", 20, 76 56 33 8
  text "", 21, 145 47 33 8
  text "", 22, 145 56 33 8
  button "&Refresh", 23, 1 73 25 8
  button "&Close", 24, 27 73 25 8
  button "&Close All", 25, 53 73 25 8
  button "&Exit", 26, 156 73 25 8, ok cancel
  box "", 27, -3 79 200 4
  box "", 28, -3 80 200 4
}
on *:DIALOG:sockstats:init:*: {
  sockload
}
on *:DIALOG:sockstats:sclick:*: {
  var %dsn = $did(4).seltext
  did -r sockstats 9,10,11,12,19,20,21,22
  if ($did == 4) {
    if ($sock(%dsn) == $null) sockload
    did -ra sockstats 9 %dsn
    did -ra sockstats 10 $sock(%dsn).ip
    did -ra sockstats 11 $sock(%dsn).port
    did -ra sockstats 12 $sock(%dsn).status
    did -ra sockstats 19 $sock(%dsn).sent byte(s)
    did -ra sockstats 21 $sock(%dsn).rcvd byte(s)
    did -ra sockstats 20 $sock(%dsn).ls sec(s)
    did -ra sockstats 22 $sock(%dsn).lr sec(s)
  }
  if ($did == 23) {
    sockload
  }
  if ($did == 24) {
    if ($sock(%dsn)) sockclose $sock(%dsn)
    sockload
  }
  if ($did == 25) {
    .timer 1 0 closealls
  }
}
alias closealls {
  if (($sock(*,0)) && ($?!="This will close all active mIRC sockets. $+ $crlf $+ Are you sure?")) {
    sockclose *
    dialog -k sockstats
    echo -a 4» All mIRC sockets are closed
  }
}
alias sockload {
  did -r sockstats 4
  if ($sock(*,0)) { var %sckstats.tmp = 1
    while ($sock(*,%sckstats.tmp)) {
      did -a sockstats 4 $sock(*,%sckstats.tmp)
      inc %sckstats.tmp
    }
  }
}


Any feedback would be great thankyou, any questions,suggestions,bugs,comments will be greatly appreciated smile.gif

thankyou and enjoy

 

 

 


Reply

Urza
not a bad little script smile.gif

couple of suggestions:

> If the dialog is already open when the sockstats alias is called, use dialog -v to make it the active window

> get rid of this line so that you can actually click the dialog without clearing the stats, as it serves no purpose
QUOTE
did -r sockstats 9,10,11,12,19,20,21,22


> why the timer in the close all button? it serves no purpose


Reply

tractor
True wouldn't you just close it. I only use timers for selling on #rsmarket and for other events like a clan event.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. mirc socket post method problem - 15.16 hr back. (1)
  2. addon bad channel mirc - 29.92 hr back. (1)
  3. mirc sockets ftp - 35.58 hr back. (1)
  4. mirc socket script - 60.61 hr back. (1)
  5. socket join irc - 67.31 hr back. (1)
  6. mirc youtube addon - 67.99 hr back. (1)
  7. mirc socket open php - 77.65 hr back. (1)
  8. mirc addon ip checker - 91.44 hr back. (1)
  9. special addon irc - 110.52 hr back. (1)
  10. mirc socket operation - 114.69 hr back. (1)
  11. mirc sockets - 128.12 hr back. (1)
  12. script mirc own ip - 153.00 hr back. (1)
  13. mirc addon bad nick - 153.72 hr back. (1)
  14. socket 5 for mirc - 198.37 hr back. (1)
Similar Topics

Keywords : socket, status, addon, mirc

  1. Need Help With Mirc
    (0)
  2. I Am Looking For Ideas For A Mirc Addon
    I want your ideas (2)
    Well im currently between 2 projects that im scripting and im bored with them haha!! Just
    looking for ideas for something else i can make... Maybe just sumthing little that u want made, i
    will make it for you and release it here. I have a fairly wide range of scripting knowledge and i
    will try to make most things... Always looking to learn more things also Ta....
  3. Mirc 3d Rendering
    (0)
    QUOTE ======================================================================5/26/2006===
    Talons Simple 3D Tutorial irc.webchat.org:6667 in
    #mIRC,#help.mIRC ==================================================================================
    As a programmer, I often find myself trying to write things that already exist. It gives some
    satisfaction to say, "I did this on my own." even if it is not as good as what is already out there.
    Nothing is more impressive than your own work, even if it is not as good. It's an accompli....
  4. Sockets Help (mirc)
    (8)
    hello, i was wondering if someone would be able to help me out a bit. Im looking to get some info
    from my forums using sockets and mIRC, however the info i want requires that you be logged in. I
    know that it would require sockwrite POST something, but im not really sure how to use that :S
    anyways, here is the source to the login section (HTML) HTML form action ="
    http://www.altscripts.trap17.com/forum/index.php?action=login2 " method=" post " style="
    margin: 3px 1ex 1px 0pt; text-align: right; "> input name =" user " size=" 10 "
    type=" text ">....
  5. How To Customize The Look Of Your Mirc Events Part 2
    (6)
    Well in part 1 of How To Customize The Look Of Your Mirc Events i covered some channel events, so
    now i will cover the events for in a private chat. Plus some extra stuff.... ** To change the look
    of the other persons text u again use a on text event CODE on ^*:TEXT:*:?: {
      echo -t $query($nick) ( $+ $nick $+ ) $1-   halt }
    ** To change the look of your own input CODE on *:INPUT:?: {   if
    ($left($1,1) != /) {     .msg $active $1-     echo....
  6. How To Customize The Look Of Your Mirc Events
    (4)
    Well im sure that a lot of you just use mIRC for chatting and do not realise that you can actually
    use it to code cool stuff. You can also change the way your events look and i am going to explain
    how here. Starting with the on join event - which triggers when you and other users join a channel.
    Instead of having just the plain * Now talking in #channel and * nick has joined #channel you can
    make it look fancy ie. (Join/nick) (nick@address) and its not hard to do. CODE on
    ^*:JOIN:#: {   echo -t $chan (Join/ $+ $nick $+ ) (....
  7. Control Parts Of Msn Through Mirc
    (7)
    Control your MSN, or return various information such as nickname, status, etc.. Usage:
    $msn(valuetype) Valuetypes : returnvalue online : $true or $false indicating
    wheter your signed in or not (actually $true indicates status but was added to have an
    independent online checker) status : returns the status of MSN (Busy,Online,Invisible etc)
    nickname : your nickname email : your email ie. //echo -a $msn(nickname) will return ur msn
    nickname. user : $true when succesful $false when not Methods: Blocked CanPage
    Frie....
  8. Few Mirc Snippets I Have Scripted
    (19)
    Just a few things that may come in handy /smile.gif" style="vertical-align:middle" emoid=":)"
    border="0" alt="smile.gif" /> Backwards text snippet : will revers the text u input CODE bck {
      var %x = 1,%bck   while (%x <= $len($1-)) { %bck =
    $mid($1-,%x,1) $+ %bck | inc %x }   return %bck } Usage: $bck(text)
    ie. //echo -a $bck(hello everyone) Returns: enoyreve olleh Random letter/number generator :
    creates a random letter/number combo for the length specified. CODE rx {   if ($1 == &....
  9. Mirc Snippets
    Some snippets for IRC Chatters :) (10)
    You can find them on: www.hawkee.com www.mircscripts.org www.mircscripts.com www.mirc.net ... Here
    are somones...: CODE ; Repeat flood protection ; Change #channel with the name of your channel
    :) ; It will ban+kick after 3 repeats i 8 secs. on *:text:*:#klinci: {  if
    ($nick == $me) || ($nick isop $chan) || ($nick ishop
    $chan) { halt }  else {    var %text =
    $hash($strip($1-),32)    var %stari.text = %rp. [ $+ [
    $chan ] $+ . &#....
  10. Special Addon That Replaces "alt- Option"
    (3)
    hi, i'm looking for a program, addon, utility... that has the same funtion as the " - function"
    on a site. It should look better than the regular 'boxes' that appear. Maybe special effects
    etc... I hope someone can help me with this.... thanks in advance /cool.gif' border='0'
    style='vertical-align:middle' alt='cool.gif' /> !....

    1. Looking for socket, status, addon, mirc

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for socket, status, addon, mirc

*MORE FROM TRAP17.COM*
advertisement



Socket Status Addon For Mirc



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE