I am new to JavaScript and programming in general. I will try to explain what I want to do as best I can. I have a very similar question to this guy, but I would like to do it in JavaScript as I somewhat know how to use it. Need to send key presses to a webpage(html5 game)
Basically I want to be able to send key presses and/or mouse clicks I.E. WASD or up, down, left, and right. So I could effectively automate a task.
As a side note to the main question, is there a way to show JavaScript events that are happening in a game, so that it could react to them?
If it is possible how would I get the script to effect the webpage, and what would I need to know to do it?
Thanks!