Is User Typing?


I'm trying to do chat app, but I'm having problem to find any function that will tell my program that user is typing ANYTHING, how I wanted to do it:

1. make thread to wait for ANY user input
2. if user types something, thread will show "<Name> is typing."
3. when user stops typing it will hide message

I know how to do everything except getting input, any suggestions?
Is this console or GUI?

If it's a GUI, then I would put something in your event loops: WndProc (Win32) or in your slots (Qt) that whenever a pushbutton is pressed, it activates that message for the next 5 seconds.
yes it's in GUI

+ what message do you mean to put in WndProc?
Last edited on
thanks! will try this after I'll finish connecting and other things with winsock
Free access to typing tutor courses for 6 months for everyone! Just register here:
Topic archived. No new replies allowed.