mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2008
Posts: 1
G
gdclnfn Offline OP
Mostly harmless
OP Offline
Mostly harmless
G
Joined: Nov 2008
Posts: 1
Hi all,
I am looking for a script to automatically set a new nickname when a user locks his/her computer. Essentially, I want to be able to show that someone is "away" when their PC is locked. Does anyone know of such a feature or script?
Any help is much appreciated.
Regards,
gdclnfn

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The closest that I'm aware of, is a script that monitors the input and if there's no input after a period of time, changes the nick and/or sets the away information. I realize that technically this doesn't monitor if the PC is locked or not, but I have no idea how, or even if, that information can be gotten.

Similar to:
Code:
on *:input:*:{
  .timeraway 1 60 away_nick
}
alias away_nick {
  .nick $anick
  .away Away
}


Link Copied to Clipboard