Using a Greasemonkey script, would it be possible to create a script that would record and play back keyboard and mouse macros?
For example, I'd like to record the action of typing "JavaScript" on the Google Search homepage, and then clicking "Google Search", and then clicking "More" on the search results page. Then, I'd want to "play back" the macro that I had just recorded, simulating each of those events in sequence.
I'm not quite sure how to do this, though. I'm not even sure if it's possible in theory. Is it even possible to record and play back keyboard macros using JavaScript?