views:

271

answers:

2

Is there a free library that has the same features of Java's Robot class for C++?

http://java.sun.com/javase/6/docs/api/java/awt/Robot.html

A: 

For Windows, there are tools like AutoIt which can automate a GUI application. On Linux I'm not aware of anything, though; expect is the gold standard for automating command line applications like telnet, but it doesn't handle GUIs.

Jack Lloyd
+2  A: 

For Linux there is Dogtail which uses the accessibility technology of GNOME. I tried writing some tests for the GNOME calculator. You can use the standard unit test framework of Python to write tests. Dogtail handles all communication with the user interface. All buttons and fields have proper names in GNOME and can be accessed from Python.

Eddy Pronk
I don't think this will be accepted... the user last login was Oct 13 '09..
Default