Simulating keyboard presses

So how do you make the program write a specific line, for example a simple bot that writes "This is a bot message" in a chat every, lets say, 10seconds.... I know how to make the mouse click on the chat position, but I don't know how to make it write the text and then click enter to send the message

EDIT: windows operating system
Last edited on
I think Autohotkey is the software you are looking for, not C++
So it's not possible to make a c++ program do it?
closed account (48bpfSEw)
is it that, what you want:
pseudocode: sendmessage (handle_of_window, WM_CHAR, 'h')

https://msdn.microsoft.com/en-us/library/windows/desktop/ms646276%28v=vs.85%29.aspx


http://www.cplusplus.com/forum/windows/43402/

Last edited on
Topic archived. No new replies allowed.