|
mega_ Beginner
Joined: 15 May 2003 Posts: 16 Location: Estonia
|
Posted: Sun Jan 11, 2004 10:59 am
Keeping track of your idle time |
I would like to keep track of when did i last entered a command or something similar. I tried searching forums for this but all i saw was #oninput solutions. However this dosent seem to work because oninput launches on everything what is sent to mud. Even stuff that scripts send.
Any other ideas how to do this?
Basically i just want to disable some classes when i am not at keyboard for x minutes.
Thanks in advance for any help. |
|
|
|
Danlo Magician
Joined: 28 Nov 2003 Posts: 313 Location: Australia
|
Posted: Sun Jan 11, 2004 6:13 pm |
You could do something like: #oninput {(*)} {#var lastenteredcommand {%time(c)}}
That won't stop it by being set off by scripts though. You could put that trigger in a class, and each time you call on a script, disable the class, and reenable after the script has finished. |
|
|
|
mega_ Beginner
Joined: 15 May 2003 Posts: 16 Location: Estonia
|
Posted: Sun Jan 11, 2004 6:41 pm |
That wont work for me, i send stuff to mud all the time and disabling it all the time would be way too huge work...
|
|
|
|
|
|