• Post Reply Bookmark Topic Watch Topic
  • New Topic

Macro recorder plugin/support/api for Swing application?

 
Brady Diggs
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all
I have been tasked with designing a macro recorder for our existing Swing application so that users can record their input to playback thus eliminating repetitive data entry.
I have searched extensively, ie. sourceforge, java.forums, etc. and have found no plugin macro recorder. Does anyone know of one?
If not, can anyone suggest an approach? We are using JDK 1.4.2.
I've considered implementing listeners and outputting text files with the recorded events then playing them back with java.awt.Robot, but this looks like it would be a large effort and I don't have much time (can anyone relate?).
I don't really know any scripting languages, but I gather that embedded scripting is an option.
Any advice at all would be helpful. Thanks!

Brady
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to take a look at Abbot - it's a GUI test framework - but it has a tool called Costello that allows scripting of GUI interactions. You may be able to use this scripting part to generate your own macros.
 
Brady Diggs
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Nate. I will look into that.
I appreciate your quick reply.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are various ways to go about this, but the java.awt.Robot class will likely be useful for implementing most of them (unless the GUI is fully decoupled from the "business" methods, so that those can be triggered without faking GUI events).
 
Brady Diggs
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf. I was considering that path.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!