• 0

Script for keyboard status


Question

Is there any script that shows the status of the keyboard? For example in an instant messenger, when you are conversating with somebody it shows you when somebody is typing a message. I have a chat and I'd like to have something like this for the chat. It can be written in Perl, PHP, HTML or JavaScript.

Thanks in advance. :)

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

I'm not sure this will help at all, but maybe using the onKeyDown or onKeyPress or onKeyUp objects in Javascript. I'm not really sure this will do it at all, but when a key is pressed they could initiate a timer, and when the timer is up, it could set the status back to nothing, or if there is content in message box, it changes to "[username] is typing a message." As long as someone is pressing keys, it will keep resetting the timer that will change the status. Then, once the message is sent, have it set the status back to nothing. Of course, this would have to be sent to the server so it could be sent to all the clients computers.

This isn't a script, but I hope this helps some.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.