Auto-Away Script 1.1

By Pepsi_Man0077 on Mar 01, 2008

Less annoying version of an away script that also automatically sets you away after 10 mins of idle

Load into remotes

type /back to come back

NEW FEATURE

type /awaysetup to set the amount of time you wish to be idle before
AutoAway is enabled

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
:::::::::::: AUTO-AWAY :::::::::::::::::
::::::::::: by PePSiMaN ::::::::::::::::
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;: Auto-Away

alias aaway {
  away Auto-Away after 10 minutes
  set %und $ctime
}
alias back {
  away
  unset %und
}
on *:TEXT:*:*: {
  if ($nick($chan,$me).idle > $calc(%time * 60)) && ($away = $false) {
    aaway
  }
  if ($me isin $1-) && ($away = $true) {
    notice $nick I regret to inform you, $nick $+ , but i am currently away. I have been gone for $duration($calc($ctime - %und)) $+ .
    if (!$window(@Away)) window @Away { 
      echo 7 -t @Away  $+ $nick $+  in  $+ $chan $+  said: $1-
    }
  }
}
on *:START: {
  timer 1 5 awaysetup
}
alias awaysetup {
  set %time $?="Enter how many minutes you wish to be idle before Auto-Away is enabled"
}

Comments

Sign in to comment.
fahadmehar   -  Apr 22, 2020

This is not working at all... I like this remote...Kindly Re-submit... Thanks

 Respond  
kslice917   -  Mar 02, 2008

Now just add the following codes, and it will be ALMOST be as 1337 as mine ;)

On your aaway alias:

    set %away.title.bar $titlebar
    timeraway 0 1 titlebar You are currently away. You have been gone for $!duration($awaytime) $+ .

And on your back alias:

    titlebar %away.title.bar
    unset %away.title.bar
    timeraway off

And what that will do is make the titlebar for mIRC refresh your away time status! When you return, it will restore the titlebar to whatever you had it set to before you went away!

Also, did you know that you can/should replace all

$duration($calc($ctime - %und)) $+ .

with this:

$duration($awaytime)) $+ .

A lot simpler, doesn\'t use any variables, and smaller too :D

 Respond  
Pepsi_Man0077   -  Mar 01, 2008

there ya go :D

 Respond  
Jonesy44   -  Mar 01, 2008

nice idea, i\'d have to agree with HoNdAx707. 10mins doenst mean ya afk. i\'d set it to default at 30mins-1hr, and make it editable =)

 Respond  
HoNdAx707   -  Mar 01, 2008

you should set an option to how long you want it because when i had 1 hr i went idle all the time coz i play games =]
just my thoughts

 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.