[SOLVED] Controlling a GUI application from a script
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have the following problem. I have a linux binary for a GUI app. I don't have the source code for it and the author also refuses to make the source code available. The GUI app works like this
1) Open Image File
2) Click on a button to do some image processing
3) Save file
The problem is that I need to do this for > 1000 images... and the app can not be used from the command line. I know the GUI is based on QT. Is there a way to control a GUI applications from a script or other software? Where is a good place to start looking for a solution to this problem?
Sounds like you need something like "expect" for a GUI.
In the Wikipedia page for Expect I see this quote:
Quote:
Expect cannot automate GUI based tools. This is generally only a problem on Windows where for many tasks a GUI based interface is the only option. In these situations tools like Autohotkey, AutoIt or Winbatch can be used instead.
I haven't used any of those but a quick perusal of the page for Autohotkey makes it sound like what you need and says it has a Linux version: http://en.wikipedia.org/wiki/Autohotkey
There are links to the other two in the original article for Expect.
I am not sure what kind of processing did you need, but next time using imagemagick or even the gimp command line interface could save you all the pain.
I need to perform tracking of facial features in a movie using Active Appearence Models. The binary tools works fine for training the models, but fails for a movie due to the one-image-at-a-time limitation of the GUI.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.