title: Would it be possible to create a macro recorder using a Greasemonkey script?
body: <p>Using a Greasemonkey script, would it be possible to create a script that would record and play back keyboard and mouse macros?</p>
  
  <p>For example, I'd like to record the action of typing "JavaScript" on the <a href="http://www.google.com/" rel="nofollow">Google Search homepage</a>, 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.</p>
  
  <p>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?</p>