Top

Auto Away on Idle


mIRC Code
+ 1 likes
Please Register to submit score.
Average Score  5.8
Scores Submitted  4
Date Added  Jan 04, 2006
Last Updated  Jan 04, 2006
Tags  away  idle 
  Bookmark and Share

Introduction

This permits a user to set a specific nick & away message to become their nick & away message if they are idle on a network for a specific amount of time.
Nick, Away Message and Idle time are customizable to each network.
There's also a check box to turn the idle check on/off, which, again, is on a network by network basis.

I have tested this with up to 4 networks with the biggest problem being up to a 30 second lag in the change.

Code will auto-execute upon start/load, plus there's menu access.

If you're already connected to one or more networks, these networks will be added to the list of networks (in the dialog) automatically.

Please let me know if you discover any problems, so that I can get them repaired as soon as possible.



Grab the Code

Comments

  (10)  RSS
RoninWarrior
Comments: 252
 
mIRC Snippet:  Auto Away on Idle
Posted on Jan 5, 2006 2:36 pm
this is a pretty simple away system that supports any server for idle away very nice job RussleB

needs dialog alignment and some wasted space issues
RusselB
Comments: 100
 
mIRC Snippet:  Auto Away on Idle
Posted on Jan 6, 2006 10:37 pm
Please clarify what you mean by "dialog alignment" and "wasted space". I thought I had the dialog well lined up. If you know of a way so that the dialog could be automatically aligned based on a person's preference, let me know, and I'll be glad to add it to the code, and your name to the credits. As to wasted space, where do you mean? If you're referring to the space for the hash tables, INI files were suggested, but I decided to not go with them.
Yoinx
Comments: 424
 
mIRC Snippet:  Auto Away on Idle
Posted on Jan 7, 2006 7:53 am
Ronninwarrior, since you're the only person that i've seen complain about anyone's dialogs.

//echo -a DBU Height - $dbuh - DBU Width - $dbuw

can you type that and let me know what you get. I have 2 pixels per dbu on my laptop. its at 800x600 (i know...)

Im just kinda curious what yours is set to.
RusselB
Comments: 100
 
mIRC Snippet:  Auto Away on Idle
Posted on Jan 7, 2006 5:08 pm
Yoinx: thanks for that little echo code. Using it and adjusting my video to multiple settings, I checked my own levels, and got the same as you did. The resolutions that I checked are: 800x600, 960x600, 1024x768, 1152x864, 1280x720, 1280x768, 1280x800, 1280x960, 1280x1024, 1360x768, 1600x900, 1600x1024, & (finally) 1600x1200

I was unable to get my monitor to go to a lower resolution than 800x600, but, in theory, if I'm getting 2 pixels/dbu with all of those, then I should get the same with anything lower.
Yoinx
Comments: 424
 
mIRC Snippet:  Auto Away on Idle
Posted on Jan 7, 2006 5:17 pm
i would assume the same... but... supposedly the dbu value is supposed to change to a different number of pixels for each resolution.. I dont really know... maybe you have to re-open mirc to get the values to change? I just started using pixels for my dialogs instead. *shrug*
nobody
Comments: 36
 
mIRC Snippet:  Auto Away on Idle
Posted on Jan 9, 2006 7:50 pm
It's simple and clean; and that's why I like it. =D
khigh
Comments: 1
 
mIRC Snippet:  Auto Away on Idle
Posted on Feb 4, 2006 4:17 pm
Hi and thanks for this! It sounds like exactly what I need. I get grief for staying opped in one channel on one network, while I have to keep my nick on another.

First off - I'm going to confess to complete scripting ignorance, so go easy on me please.

I dropped this into the remotes section of script.ini, and not much happened. I noticed when I connect now, that I get the following error message (mIRC 6.16)

* /did: invalid parameters (line 47, script.ini)

Which points to...

n47= .hadd -m Idle_Away $+(Network.,$network) $cid

I realize this is just a snippet, and I should probably configure it somehow before dropping it in and expecting it to work, but could you give a newbie a pointer?

Thanks

(And if you're feeling especially benevolent - could you tell me if I could drop a network-specific command in there somewhere to go along with the nick change - so I can de-op?)

Kevin
RoninWarrior
Comments: 252
 
mIRC Snippet:  Auto Away on Idle
Posted on Feb 4, 2006 6:38 pm
DBU Height - 2 - DBU Width - 2
RES 1280 by 720 windows XP pro
when i complain about someones dialog it doesnt mean that the dialog is ugly im just real picky about everything in a dialog being perfectlt aligned is all RussleB dialog on a scale of 1-10 is about 8.5 which is darn near perfect if you load your MP3 and Xdeamon mp3 player you will see there about 9.5-9.7 with being perfect but what is perfect to me ,might be junk to you and others
RusselB
Comments: 100
 
mIRC Snippet:  Auto Away on Idle
Posted on Feb 24, 2006 12:03 am
khigh: The only ways that I can see that line returning that error is A) You have tried running the script from a fresh start of mIRC without connecting
B) You happen to have hit one of the few networks that doesn't return a value for $network (I understand that they do exist, but I haven't found one)

My apologies for not responding to this sooner..it was actually a fluke that I was referring someone else to this script and I needed the actual snippet ID
Gex
Comments: 94
 
mIRC Snippet:  Auto Away on Idle
Posted on Feb 24, 2006 4:26 am
RusselB when RoninWarrior said "needs dialog alignment and some wasted space issues" he didnt say sth wrong maybe alignment isnt so important but he is rite the dialog u made isnt aligned perfectly and when he said wasted space he meant wasted space in the dialog design like the space down to the combo box...anyway in Dialog studio there is Alignment options like the visual basic one's choose 2 or 3 controls then rite click then alignment and there u can find the options which will give u 100% good looking better. sth else i wanna say. roninwarrior didnt say its bad snippet and he refered to some drawbacks in the dialog and this is sth i respect for a reason; when i rate a script the first thing i look to is the quality of the code and its functionality the second thing is the design if exists.like in mirc.net exactly gives score on design / functionality .
@yoinx roninwarrior didnt say sth wrong the dialog needs to be modified if someone has worked or sold vb project b4 u would know what ronin means.most of programers write the code and let the designers design the forms/menus etc..

Please Register or Login to start posting comments.
Bottom