5

I am building a web application which I would like to contain a macro recorder, like the one demonstrated here: http://blog.metawrap.com/2007/06/22/javascript-macro-recorder/

The problem with this macro recorder is that isn't maintained any longer, and appears to break in newer browsers (or, at least in Chrome). Are there any JavaScript/jQuery based macro recorders that you can recommend.

Note: I am not referring to anything related to "Lisp-style" macros that are referenced in this post. I mean an actual macro recorder that will capture and record mouse and keyboard events.

Community
  • 1
  • 1
Oliver Spryn
  • 16,871
  • 33
  • 101
  • 195
  • Have you tested this macro recorder in any browser besides Chrome? I've only tested it in Chrome, and it doesn't work in Chrome at all. – Anderson Green May 04 '13 at 01:41
  • @AndersonGreen Great find! No, I know the link I provided doesn't work at all in Chrome. If you post your comment as an answer, I'll accept it. – Oliver Spryn May 04 '13 at 05:23

2 Answers2

4

I have not yet found any libraries for macro recording, but it may be possible to record macros by capturing keyboard and mouse events or listening for events on a page. I found several JavaScript libraries for recording keyboard and mouse actions, so they may be useful for macro recording:

  • evtrack is a library for event-tracking, including keyboard and mouse-tracking.
  • musjs tracks mouse movements.

It might even be possible to "play back" recorded macros by simulating clicks and key presses on a page. To record a macro on more than one browser tab, it might be necessary to send messages between the tabs.

Anderson Green
  • 30,230
  • 67
  • 195
  • 328
2

The following opensource records mouse movements: https://github.com/danielwix/wix-client-recorder

It is an entirely client-side project.

Daniel
  • 754
  • 1
  • 11
  • 25