Weird, it really doesnt work for me at all. I don't know what I am doing wrong.\
Edit: after playing it with Delay checked, I have kinda made it work, but when I remove the delays, the chat doesn't work, I only make my characters move / throw nades and all.
I think the important thing is to have a delay after the chat key, "k" in this case.
Otherwise the chat window will not be ready, and all your keypresses will go directly to the game.
Comment